Skip to content

Commit

Permalink
use DummyCookieJar if the library creates the session
Browse files Browse the repository at this point in the history
  • Loading branch information
AbstractUmbra committed Aug 29, 2024
1 parent 2584488 commit c799aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hondana/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ async def _generate_session(self) -> aiohttp.ClientSession:
.. note::
This method must be a coroutine to avoid the deprecation warning of Python 3.9+.
"""
self._session = aiohttp.ClientSession()
self._session = aiohttp.ClientSession(cookie_jar=aiohttp.DummyCookieJar())
return self._session

async def close(self) -> None:
Expand Down

0 comments on commit c799aa3

Please sign in to comment.