>>> r = Wordnik()
>>> randomWord = r.get_random_word()
Retry, exception: list indices must be integers or slices, not str
Retry, exception: list indices must be integers or slices, not str
Retry, exception: list indices must be integers or slices, not str
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/ozgur/.pyenv/versions/3.11.3/lib/python3.11/site-packages/random_word/utils/retry_generator.py", line 25, in fn
raise exception
File "/Users/ozgur/.pyenv/versions/3.11.3/lib/python3.11/site-packages/random_word/utils/retry_generator.py", line 20, in fn
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/Users/ozgur/.pyenv/versions/3.11.3/lib/python3.11/site-packages/random_word/services/wordnik.py", line 75, in get_random_word
return result["word"]
~~~~~~^^^^^^^^
TypeError: list indices must be integers or slices, not str
>>>
--
You received this message because you are subscribed to the Google Groups "Wordnik API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wordnik-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wordnik-api/8c5b625f-0860-4b33-869c-7f270ede4c33n%40googlegroups.com.