Asyncio warning when starting application
Jonxslays opened this issue · 1 comments
Jonxslays commented
When utilizing the Client
a warning is thrown about initiating an asyncio client session outside of an async function. This needs to be done inside an async function.
W 2023-04-14 07:40:35,835 py.warnings: ./.venv/lib/python3.10/site-packages/wom/services/http.py:70: DeprecationWarning: The object should be created within an async function
self._session = aiohttp.ClientSession()