From a6ba9ef25a815d6022011a5b7e4c92625b5cbee0 Mon Sep 17 00:00:00 2001 From: Steffen Siebert Date: Sat, 7 Sep 2024 22:09:15 +0200 Subject: [PATCH] Implement requested change --- findmy/util/http.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/findmy/util/http.py b/findmy/util/http.py index 93f48fc..495994a 100644 --- a/findmy/util/http.py +++ b/findmy/util/http.py @@ -107,8 +107,7 @@ class HttpSession(Closable): if isinstance(auth, tuple): kwargs["auth"] = BasicAuth(auth[0], auth[1]) else: - if auth: - kwargs.pop("auth") + kwargs.pop("auth", None) options = cast(_AiohttpRequestOptions, kwargs) async with await session.request(