We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ebd755 commit c091b63Copy full SHA for c091b63
src/pyloadapi/api.py
@@ -44,7 +44,7 @@ async def login(self) -> LoginResponse:
44
r.raise_for_status()
45
try:
46
data = await r.json()
47
- if not r:
+ if not data:
48
raise InvalidAuth
49
return LoginResponse.from_dict(data)
50
except JSONDecodeError as e:
0 commit comments