diff --git a/backend/handler/igdb_handler.py b/backend/handler/igdb_handler.py index 1a0a93777..3c904259e 100644 --- a/backend/handler/igdb_handler.py +++ b/backend/handler/igdb_handler.py @@ -250,7 +250,7 @@ class TwitchAuth: token = cache.get("twitch_token") token_expires_at = cache.get("twitch_token_expires_at") - if not token or time.time() > float(token_expires_at): + if not token or time.time() > float(token_expires_at or 0): log.warning("Twitch token invalid: fetching a new one...") return self._update_twitch_token()