Fix crash in http.py on Python 3.9

This commit is contained in:
Steffen Siebert
2024-09-07 15:07:29 +02:00
committed by GitHub
parent 5b9c9ad3eb
commit 501f875c63

View File

@@ -107,7 +107,8 @@ class HttpSession(Closable):
if isinstance(auth, tuple):
kwargs["auth"] = BasicAuth(auth[0], auth[1])
else:
kwargs.pop("auth")
if auth:
kwargs.pop("auth")
options = cast(_AiohttpRequestOptions, kwargs)
async with await session.request(