mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-05 03:49:37 +00:00
Mostly ignore instances of "server error"
This commit is contained in:
@@ -1307,6 +1307,14 @@ class Twitch:
|
||||
delay = 5
|
||||
force_retry = True
|
||||
break
|
||||
elif error_dict["message"] == "server error":
|
||||
# nullify the key the error path points to
|
||||
data_dict: JsonType = response_json["data"]
|
||||
path: list[str] = error_dict.get("path", [])
|
||||
for key in path[:-1]:
|
||||
data_dict = data_dict[key]
|
||||
data_dict[path[-1]] = None
|
||||
break
|
||||
elif (
|
||||
error_dict["message"] in (
|
||||
"service timeout",
|
||||
|
||||
Reference in New Issue
Block a user