Open arixank opened 3 years ago
Even This doesn't work:
Same issue here under Ubuntu 20.04 LTS with python 3.9, I'll go try with 3.8
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
for now this is what I'm doing for a dictionary type application..! At least string type can be done with something.
Same here, strangely enough it sometimes spits out a list
type, sometimes NoneType
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.
I managed to fix it guys
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):