Skip to content

Commit c091b63

Browse files
committed
Fix login not raising InvalidAuth
1 parent 9ebd755 commit c091b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyloadapi/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def login(self) -> LoginResponse:
4444
r.raise_for_status()
4545
try:
4646
data = await r.json()
47-
if not r:
47+
if not data:
4848
raise InvalidAuth
4949
return LoginResponse.from_dict(data)
5050
except JSONDecodeError as e:

0 commit comments

Comments
 (0)