Closed tech-savvy-guy closed 3 years ago
It seems that this is a Windows only issue that I wasn't aware of as I don't have a Windows machine. Please try prepending the following snippet to the code.
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
Will fix the documentation mistake when I get the chance.
Alright, thanks for the update.
Hi. I was trying to use the Python wrapper of Joke API. I was going through the
README.md
when I came across thisget_joke()
example:Bugs:
NameError: name 'joke' is not defined
joke = await j.get_joke()
in the second line of the function it still gives me an error along with the joke:RuntimeError: Event loop is closed
To Reproduce
README.md
and run it.Expected behavior
I expected the function to return a joke after each call.