Skip to content

Commit

Permalink
Add 901 to know authentication failures (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Jan 17, 2024
1 parent 1457061 commit e842e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sfrbox_api/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _check_response(self, response: httpx.Response) -> XmlElement:
and (code := err.get("code"))
and (msg := err.get("msg"))
):
if code in {"115", "204"}:
if code in {"115", "204", "901"}:
# Reset token on auth failure
self._token = None
raise SFRBoxAuthenticationError(f"Api call failed: [{code}] {msg}")
Expand Down

0 comments on commit e842e6a

Please sign in to comment.