mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-23 14:17:46 -04:00
Fixed server side exception throttling opensubtitles.com when it shouldn't. #2153
This commit is contained in:
parent
b9b97e980e
commit
3c57381bb4
1 changed files with 4 additions and 0 deletions
|
@ -518,6 +518,10 @@ def checked(fn, raise_api_limit=False, validate_token=False, validate_json=False
|
|||
elif status_code == 429:
|
||||
log_request_response(response)
|
||||
raise TooManyRequests()
|
||||
elif status_code == 500:
|
||||
logging.debug("Server side exception raised while downloading from opensubtitles.com website. They "
|
||||
"should mitigate this soon.")
|
||||
return None
|
||||
elif status_code == 502:
|
||||
# this one should deal with Bad Gateway issue on their side.
|
||||
raise APIThrottled()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue