yes.
This commit is contained in:
parent
9e335902bb
commit
3bc534d362
1 changed files with 4 additions and 1 deletions
5
main.py
5
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__":
|
||||
|
|
Loading…
Reference in a new issue