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__":