mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Defensive programming: Catch case where 'error_description' is missing in response.
This commit is contained in:
parent
c16096c223
commit
273f85c182
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class AuthorizationHelpers:
|
|||
return
|
||||
|
||||
if token_response.error() != QNetworkReply.NetworkError.NoError:
|
||||
callback(AuthenticationResponse(success = False, err_message = token_data["error_description"]))
|
||||
callback(AuthenticationResponse(success = False, err_message = token_data.get("error_description", "an unknown server error occurred")))
|
||||
return
|
||||
|
||||
callback(AuthenticationResponse(success = True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue