mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-22 05:51:10 +00:00
no log: another fix for assrt. #1953
This commit is contained in:
parent
a26b86cb95
commit
b369678165
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import re
|
|||
from babelfish import language_converters
|
||||
from guessit import guessit
|
||||
from requests import Session
|
||||
from requests.exceptions import JSONDecodeError
|
||||
from time import sleep
|
||||
from math import ceil
|
||||
|
||||
|
@ -50,7 +51,7 @@ def check_status_code(resp):
|
|||
response = resp.json()
|
||||
if 'status' in response and 'errmsg' in response:
|
||||
raise ProviderError(f'{response["errmsg"]} ({response["status"]})')
|
||||
except Exception:
|
||||
except JSONDecodeError:
|
||||
pass
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue