Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura/API
diff options
context:
space:
mode:
Diffstat (limited to 'cura/API')
-rw-r--r--cura/API/Account.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/API/Account.py b/cura/API/Account.py
index 993e53e539..b63983e0cc 100644
--- a/cura/API/Account.py
+++ b/cura/API/Account.py
@@ -269,10 +269,10 @@ class Account(QObject):
return self._authorization_service.getAccessToken()
@pyqtProperty("QVariantMap", notify = userProfileChanged)
- def userProfile(self) -> Optional[Dict[str, Optional[str]]]:
+ def userProfile(self) -> Dict[str, Optional[str]]:
"""None if no user is logged in otherwise the logged in user as a dict containing containing user_id, username and profile_image_url """
if not self._user_profile:
- return None
+ return {}
return self._user_profile.__dict__
@pyqtProperty(str, notify=lastSyncDateTimeChanged)