Skip to content

Commit

Permalink
Try refreshing token for 404 error.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuosier committed Oct 24, 2024
1 parent f076405 commit ad34d42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def _check_response(self, response: Any) -> None:
if hasattr(response, "status_code")
else response.status
)
if status_code == 401 and self._refresh_signer():
if status_code in [401, 404] and self._refresh_signer():
raise TokenExpiredError() from http_err

raise ServerError(
Expand Down

0 comments on commit ad34d42

Please sign in to comment.