From 1636cca601a993619f52f7a713dbc22cf5051f49 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 22 Nov 2021 10:34:39 +0100 Subject: [PATCH] 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. --- cura/OAuth2/AuthorizationService.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cura/OAuth2/AuthorizationService.py b/cura/OAuth2/AuthorizationService.py index 797ebe2c38..c9f60ddf2d 100644 --- a/cura/OAuth2/AuthorizationService.py +++ b/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):