Add some kaizen changes from #5328

Contributes to CL-1245
This commit is contained in:
Ian Paschal 2019-02-20 10:45:36 +01:00
parent a11878b199
commit 09fe06b8bf
2 changed files with 6 additions and 6 deletions

View file

@ -66,11 +66,7 @@ class AuthorizationService:
# \sa _parseJWT
def getUserProfile(self) -> Optional["UserProfile"]:
if not self._user_profile:
try:
self._user_profile = self._parseJWT()
except requests.exceptions.ConnectionError:
# Unable to get connection, can't login.
return None
self._user_profile = self._parseJWT()
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.