Open paulvonhippel opened 1 year ago
Sorry for the delay!
That's the intended behavior. I don't recall why I wrote it that way and if I were to write it again, maybe I wouldn't write it that way.
Does this cause any problems for you? If you need to prevent crashing you can do something like:
try:
print(isle.lookup('zit')[0])
except errors.WordNotInIsleError:
pass
Does that work for you?
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: