Browse Source

Add missing return

We're calling back that there is no auth data, so we should stop here and not try to obtain a user profile.

Contributes to issue CURA-8539.
Ghostkeeper 3 years ago
parent
commit
1636cca601
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cura/OAuth2/AuthorizationService.py

+ 1 - 0
cura/OAuth2/AuthorizationService.py

@@ -103,6 +103,7 @@ class AuthorizationService:
             # If no auth data exists, we should always log in again.
             Logger.debug("There was no auth data or access token")
             callback(None)
+            return
 
         # When we checked the token we may get a user profile. This callback checks if that is a valid one and tries to refresh the token if it's not.
         def check_user_profile(user_profile):