Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidak ada entri makna pada kata khayal #9

Closed
noaione opened this issue Dec 14, 2019 · 3 comments
Closed

Tidak ada entri makna pada kata khayal #9

noaione opened this issue Dec 14, 2019 · 3 comments
Labels
kutu Kutu yang perlu diawakutu.

Comments

@noaione
Copy link
Contributor

noaione commented Dec 14, 2019

https://kbbi.kemdikbud.go.id/entri/khayal

Menggunakan versi 0.3.2

Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from kbbi import KBBI
>>> KBBI('khayal')
<KBBI: khayal>
>>> test = KBBI('khayal')
>>> test
<KBBI: khayal>
>>> print(test)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python36\lib\site-packages\kbbi\kbbi.py", line 77, in __str__
    result = '\n\n'.join(str(entri) for entri in self.entri)
  File "C:\Python36\lib\site-packages\kbbi\kbbi.py", line 77, in <genexpr>
    result = '\n\n'.join(str(entri) for entri in self.entri)
  File "C:\Python36\lib\site-packages\kbbi\kbbi.py", line 212, in __str__
    return hasil + '\n' + self._makna()
  File "C:\Python36\lib\site-packages\kbbi\kbbi.py", line 171, in _makna
    return str(self.makna[0])
IndexError: list index out of range
>>> test.serialisasi()
{'khayal': [{'nama': 'kha.yal', 'nomor': '', 'kata_dasar': [], 'pelafalan': '', 'bentuk_tidak_baku': ['kayal'], 'varian': [], 'makna': []}]}
@laymonage laymonage added the kutu Kutu yang perlu diawakutu. label Dec 14, 2019
@laymonage
Copy link
Owner

Halo @noaione, terima kasih atas isu yang telah dibuat! 👍

Saya rasa ini berkaitan dengan #4. Saya belum sempat memperbaikinya untuk sekarang ini. Apakah Saudara mau buat Pull Request untuk memperbaikinya?

@noaione
Copy link
Contributor Author

noaione commented Dec 18, 2019

Mungkin saja.
Ini sekalian lagi tak buatkan fitur autentikasi agar bisa mendapatkan etimologi dan kata turunan yang hanya tersedia bagi pengguna.

@laymonage
Copy link
Owner

Telah diperbaiki dalam #10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kutu Kutu yang perlu diawakutu.
Projects
None yet
Development

No branches or pull requests

2 participants