From 501f875c63fffd41fee053c2f78a80b842e3990a Mon Sep 17 00:00:00 2001 From: Steffen Siebert Date: Sat, 7 Sep 2024 15:07:29 +0200 Subject: [PATCH] Fix crash in http.py on Python 3.9 --- findmy/util/http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/findmy/util/http.py b/findmy/util/http.py index 027694f..93f48fc 100644 --- a/findmy/util/http.py +++ b/findmy/util/http.py @@ -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(