SethDusek/define

The program prints an error when no definition is found

nixi-awoo opened this issue · 1 comments

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__'

error

Adressed by commit cf70cd3.