Do not get user profile by loading auth data

This commit is contained in:
Erwan MATHIEU 2024-03-14 11:17:12 +01:00 committed by GitHub
parent 9f952b91c3
commit 85b60c1f28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -305,7 +305,8 @@ class AuthorizationService:
message_type = Message.MessageType.ERROR)
Logger.warning("Unable to get user profile using auth data from preferences.")
self._unable_to_get_data_message.show()
self.getUserProfile(callback)
if self._get_user_profile:
self.getUserProfile(callback)
except (ValueError, TypeError):
Logger.logException("w", "Could not load auth data from preferences")