mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:15:56 +08:00
Log warning instead of exception if no connection
Contributes to CL-1245
This commit is contained in:
parent
164e721c42
commit
a11878b199
@ -92,7 +92,7 @@ class AuthorizationHelpers:
|
|||||||
})
|
})
|
||||||
except requests.exceptions.ConnectionError:
|
except requests.exceptions.ConnectionError:
|
||||||
# Connection was suddenly dropped. Nothing we can do about that.
|
# Connection was suddenly dropped. Nothing we can do about that.
|
||||||
Logger.logException("e", "Something failed while attempting to parse the JWT token")
|
Logger.log("w", "Something failed while attempting to parse the JWT token")
|
||||||
return None
|
return None
|
||||||
if token_request.status_code not in (200, 201):
|
if token_request.status_code not in (200, 201):
|
||||||
Logger.log("w", "Could not retrieve token data from auth server: %s", token_request.text)
|
Logger.log("w", "Could not retrieve token data from auth server: %s", token_request.text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user