Skip to content

Commit

Permalink
Fix crash in http.py on Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
siebert authored Sep 7, 2024
1 parent 5b9c9ad commit 501f875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion findmy/util/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ async def request(
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(
Expand Down

0 comments on commit 501f875

Please sign in to comment.