Skip to content

Commit

Permalink
raise NetworkUnauthorized only for 401
Browse files Browse the repository at this point in the history
Signed-off-by: minff <[email protected]>
  • Loading branch information
minff committed Feb 12, 2024
1 parent 283cbea commit 65c5f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XYZHubConnector/xyz_qgis/iml/network/net_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def handle_error(cls, response: NetworkResponse):

if err == response.get_reply().OperationCanceledError: # operation canceled
raise NetworkTimeout(response)
elif status in (401, 403):
elif status in (401,):
raise IMLNetworkUnauthorized(response)
elif err > 0 or not status:
if reply_tag == "oauth_project":
Expand Down

0 comments on commit 65c5f3b

Please sign in to comment.