aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2024-06-18 05:31:50 -0400
committermorpheus65535 <[email protected]>2024-06-18 05:31:50 -0400
commitfb83ec4081484b046664c6fc3a21a47d6542519f (patch)
tree32580aeeedf7c8c3a9ba0d2402d60d47f0ef1a02
parente0d14a66e2d71a2d3f212e787cbeb2729c73946c (diff)
downloadbazarr-fb83ec4081484b046664c6fc3a21a47d6542519f.tar.gz
bazarr-fb83ec4081484b046664c6fc3a21a47d6542519f.zip
Fixed unhandled exception in opensubtitles.com provider login method. #2545
-rw-r--r--custom_libs/subliminal_patch/providers/opensubtitlescom.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom_libs/subliminal_patch/providers/opensubtitlescom.py b/custom_libs/subliminal_patch/providers/opensubtitlescom.py
index 83f7f0327..0cf5a7c84 100644
--- a/custom_libs/subliminal_patch/providers/opensubtitlescom.py
+++ b/custom_libs/subliminal_patch/providers/opensubtitlescom.py
@@ -218,7 +218,7 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
try:
self.token = r.json()['token']
- except (ValueError, JSONDecodeError):
+ except (ValueError, JSONDecodeError, AttributeError):
log_request_response(r)
raise ProviderError("Cannot get token from provider login response")
else: