-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_random_word() & get_random_words() return a NoneType....!! #70
Comments
Same issue here under Ubuntu 20.04 LTS with python 3.9, I'll go try with 3.8 |
yes please let me know, I'm also working on several work arounds..!! Thanks |
Same here, strangely enough it sometimes spits out a r = RandomWords()
random_words_list = r.get_random_words(limit=length_of_list) |
Same here from random_word import RandomWords
r = RandomWords()
print(r.get_random_word()) Sometimes it prints an actual word, sometimes None |
Still happening for me: import random
from random_word import RandomWords
random_words = RandomWords()
words = random_words.get_random_words(limit=random.randint(1, 10), hasDictionaryDef=True) This sometimes returns a list of random words, and sometimes returns NoneType. |
That's not a fix, it's a hacky workaround at best. |
Describe the bug
At some point in type I'm encountering a NoneType in my code, which I'm unable to try and catch nor ignore it by another method..!
To Reproduce
Steps to reproduce the behavior:
here is a code screen shot:
code:
Expected behavior
Need to generate words or at least return a English word
Screenshots
Error Screen Shot
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: