Open byhlel opened 2 years ago
@byhlel
def get_random_word() -> str:
def roll():
result = rw.get_random_word()
if not result:
result = roll()
return result
return roll()
@byhlel
def get_random_word() -> str: def roll(): result = rw.get_random_word() if not result: result = roll() return result return roll()
This seems indeed to be a good workaround, but it was to mainly point out the issue to the package owners. Thank you very much though!
The get_random_word function returns None to often When called with various parameters, it returns None rather than a word...
To Reproduce Here is the code to test on your own:
Expected behavior I would have expected for a word to be returned for each case, it becomes enev more obvious when you add a maxLength (in my case but probably with other parameters too)
Screenshots This is a screenshot with following parameters:
Environment (please complete the following information):
Additional Informations Do not hesitate to comment for any additionnal informations towards my issue!
Greetings Thank you for taking time to read and I hope we will be able to fix this issue! Bilal.