From 3bc534d362d3f534d30b9fb3394eb4ebd23895e1 Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sun, 20 Dec 2020 02:23:01 +0100 Subject: [PATCH] yes. --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index e17a6f4..3ef8d36 100644 --- a/main.py +++ b/main.py @@ -167,7 +167,10 @@ def is_token_expired(): open_browser=False ) token_info = sp_oauth.get_cached_token() - return token_info.is_token_expired() + if not token_info: + return True + else: + return token_info.is_token_expired() if __name__ == "__main__":