diff options
author | morpheus65535 <[email protected]> | 2022-11-09 16:14:09 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-11-09 16:14:09 -0500 |
commit | b3696781658f4d3f4e7165f032bf3f709c6c160e (patch) | |
tree | 094d775617b332ee68d1615ba1dc8ee13464290f | |
parent | a26b86cb953fb75859fe567e641f27253fe5a3a2 (diff) | |
download | bazarr-b3696781658f4d3f4e7165f032bf3f709c6c160e.tar.gz bazarr-b3696781658f4d3f4e7165f032bf3f709c6c160e.zip |
no log: another fix for assrt. #1953
-rw-r--r-- | libs/subliminal_patch/providers/assrt.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/subliminal_patch/providers/assrt.py b/libs/subliminal_patch/providers/assrt.py index dcb215ec2..04662e2db 100644 --- a/libs/subliminal_patch/providers/assrt.py +++ b/libs/subliminal_patch/providers/assrt.py @@ -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 |