Skip to content
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

Example raises DeprecationWarning on __main__ #65

Closed
scoutice opened this issue Jan 3, 2023 · 1 comment
Closed

Example raises DeprecationWarning on __main__ #65

scoutice opened this issue Jan 3, 2023 · 1 comment

Comments

@scoutice
Copy link
Contributor

scoutice commented Jan 3, 2023

example.py:316: DeprecationWarning: There is no current event loop

As stated in https://www.reddit.com/r/learnpython/comments/smb2dt/aiohttp_error_deprecationwarning_there_is_no/

shall be replaced through
asyncio.run(main())
or (i think even better)

    loop = asyncio.new_event_loop()
    loop.run_until_complete(main())

@Farfar
Copy link
Collaborator

Farfar commented Jan 5, 2023

Thanks! Will be included in 1.3.1 release I'm currently testing.

@Farfar Farfar closed this as completed Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants