aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2022-11-09 16:14:09 -0500
committermorpheus65535 <[email protected]>2022-11-09 16:14:09 -0500
commitb3696781658f4d3f4e7165f032bf3f709c6c160e (patch)
tree094d775617b332ee68d1615ba1dc8ee13464290f
parenta26b86cb953fb75859fe567e641f27253fe5a3a2 (diff)
downloadbazarr-b3696781658f4d3f4e7165f032bf3f709c6c160e.tar.gz
bazarr-b3696781658f4d3f4e7165f032bf3f709c6c160e.zip
no log: another fix for assrt. #1953
-rw-r--r--libs/subliminal_patch/providers/assrt.py3
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