1 parent 67381b0 commit 5c8e4cfCopy full SHA for 5c8e4cf
1 file changed
spotify_monitor.py
@@ -1807,6 +1807,9 @@ def spotify_get_access_token_from_sp_dc(sp_dc: str):
1807
debug_print(f"TOTP secrets unavailable: {e}")
1808
if fetch_and_update_secrets():
1809
debug_print("TOTP secrets updated, retrying token refresh immediately")
1810
+ retry += 1
1811
+ if retry < max_retries:
1812
+ time.sleep(TOKEN_RETRY_TIMEOUT)
1813
continue
1814
raise RuntimeError(f"Failed to obtain TOTP secrets for token refresh: {e}")
1815
except Exception as e:
0 commit comments