Closed calmsleeper closed 3 years ago
@calmsleeper Thanks for opening the issue. I am looking into it and soon update the package with a relevant fix.
Having the same exact problem. My code worked properly in my one project, but then I copied it over to another and started getting that error.
hi @vaibhavsingh97 I also encounter the same problem.
Another issue I found when API error:
RandomWords class init line 23, returns an error "TypeError: exceptions must derive from BaseException". You may change the line to raise ValueError("API key either expired or not working. Please raise issue at {}".format(self.issue_url))
@vaibhavsingh97 Thank you for the fix the RandomWord package is pulling dictionary words as of today (3/10/19)
@calmsleeper @choonkiattay Please update the package to the latest version. I had included the latest fix.
I had released a new version on PyPI (https://pypi.org/project/Random-Word/1.0.6/), this will fix recent issues.
Describe the bug I was using this package with a discord bot to generate random words and it worked fine up until last Friday. The error it throws points to line #24 in random_word.py which tells me "API key either expired or not working. Please raise issue at..."
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots https://i.imgur.com/aVmmdEx.png
Environment (please complete the following information):
Additional context Add any other context about the problem here.