The program prints an error when no definition is found
nixi-awoo opened this issue · 1 comments
nixi-awoo commented
The program prints out this error when the searched string has not been found on Wordnik.
Traceback (most recent call last):
File "/usr/bin/define", line 24, in <module>
print(rem[i].upper() + ": \n" + client.getDefinitions(rem[i])[0].text)
TypeError: 'NoneType' object has no attribute '__getitem__'
professorjamesmoriarty commented
Adressed by commit cf70cd3.