mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-03 03:54:01 -06:00
Revert "Add some kaizen changes from #5328"
This reverts commit 09fe06b8bf
.
This commit is contained in:
parent
09fe06b8bf
commit
cb8804b86a
2 changed files with 6 additions and 6 deletions
|
@ -66,7 +66,11 @@ class AuthorizationService:
|
|||
# \sa _parseJWT
|
||||
def getUserProfile(self) -> Optional["UserProfile"]:
|
||||
if not self._user_profile:
|
||||
self._user_profile = self._parseJWT()
|
||||
try:
|
||||
self._user_profile = self._parseJWT()
|
||||
except requests.exceptions.ConnectionError:
|
||||
# Unable to get connection, can't login.
|
||||
return None
|
||||
|
||||
if not self._user_profile and self._auth_data:
|
||||
# If there is still no user profile from the JWT, we have to log in again.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue