Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion monarchmoney/monarchmoney.py
Original file line number Diff line number Diff line change
Expand Up @@ -2886,6 +2886,7 @@ async def _multi_factor_authenticate(
) as resp:
if resp.status != 200:
try:
raw_response = await resp.text()
response = await resp.json()
if "detail" in response:
error_message = response["detail"]
Expand All @@ -2897,7 +2898,7 @@ async def _multi_factor_authenticate(
raise LoginFailedException(error_message)
except:
raise LoginFailedException(
f"HTTP Code {resp.status}: {resp.reason}\nRaw response: {resp.text}"
f"HTTP Code {resp.status}: {resp.reason}\nRaw response: {raw_response}"
)
response = await resp.json()
self.set_token(response["token"])
Expand Down