mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
improved scan when igdb token is invalid
This commit is contained in:
@@ -552,7 +552,9 @@ class TwitchAuth:
|
||||
)
|
||||
|
||||
if res.status_code == 400:
|
||||
log.error("Invalid IGDB_CLIENT_ID or IGDB_CLIENT_SECRET")
|
||||
msg = "Invalid IGDB_CLIENT_ID or IGDB_CLIENT_SECRET"
|
||||
log.error(msg)
|
||||
raise ValueError(msg)
|
||||
else:
|
||||
token = res.json().get("access_token", "")
|
||||
expires_in = res.json().get("expires_in", 0)
|
||||
|
||||
Reference in New Issue
Block a user