You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pysle crashes when give a word that's not in its dictionary. It would be better, I think, to return a blank or something and continue running.
To give you an idea what I mean by "crash," I ran this code:
from pysle import isletool
isle = isletool.Isle()
print(isle.lookup('zit')[0]) # Get the first entry's pronunciation
and this is what I saw in the terminal:
Traceback (most recent call last):
File "test_pysle.py", line 3, in <module>
print(isle.lookup('zit')[0]) # Get the first entry's pronunciation
^^^^^^^^^^^^^^^^^^
File "<path>\pysle\isletool.py", line 109, in lookup
return self._lazyLoad(word)
^^^^^^^^^^^^^^^^^^^^
File "<path>\pysle\isletool.py", line 62, in _lazyLoad
raise errors.WordNotInIsleError(word)
pysle.utilities.errors.WordNotInIsleError: Word 'zit' not in ISLE dictionary. Please add it to continue.
The text was updated successfully, but these errors were encountered:
pysle crashes when give a word that's not in its dictionary. It would be better, I think, to return a blank or something and continue running.
To give you an idea what I mean by "crash," I ran this code:
and this is what I saw in the terminal:
The text was updated successfully, but these errors were encountered: