mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-20 07:54:17 +02:00
Fix crash in http.py on Python 3.9
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user