You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 27, 2025. It is now read-only.
raiseException('Fanbox API reports 401 Unauthorized. session_cookies in the config file has likely been invalidated and needs to be updated. Restart the bot after updating.')
68
-
ifresponse.status_code==403:
69
-
raiseException('Fanbox API reports 403 Forbidden. Headers and cookies in the config file likely need to be updated. Restart the bot after updating.')
70
-
ifresponse.is_error:
71
-
returnNone
66
+
ifresponse.status_codein [401, 403]:
67
+
raiseException(f'Fanbox API reports {response.status_code}{response.reason_phrase}. session_cookies and headers in the config file has likely been invalidated and need to be updated. Restart the bot after updating.')
68
+
ifresponse.status_code==404:
69
+
ifok_404:
70
+
returnNone
71
+
else:
72
+
raiseException(f'Fanbox API reports {response.status_code}{response.reason_phrase}. This is unexpected for this call.')
0 commit comments