aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-05-29 06:38:35 -0400
committermorpheus65535 <[email protected]>2023-05-29 06:38:35 -0400
commit2346f3ed580ac8c05d3971315f239694201364ed (patch)
tree22acf367039c2a8efaa0f723378ad207136c8d6a
parent43a6630527c4f2a7413ecdf707d8c4eaffe86b4c (diff)
downloadbazarr-2346f3ed580ac8c05d3971315f239694201364ed.tar.gz
bazarr-2346f3ed580ac8c05d3971315f239694201364ed.zip
Added some exceptions that shouldn't be retried to retry function. #2153
-rw-r--r--libs/subliminal_patch/providers/mixins.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/subliminal_patch/providers/mixins.py b/libs/subliminal_patch/providers/mixins.py
index 6fa47513a..b5885ada2 100644
--- a/libs/subliminal_patch/providers/mixins.py
+++ b/libs/subliminal_patch/providers/mixins.py
@@ -10,8 +10,7 @@ import os
from six.moves.http_client import ResponseNotReady
from guessit import guessit
-from subliminal import ProviderError
-from subliminal.exceptions import ServiceUnavailable, DownloadLimitExceeded
+from subliminal.exceptions import ServiceUnavailable, DownloadLimitExceeded, ConfigurationError, AuthenticationError
from subliminal.providers.opensubtitles import Unauthorized
from subliminal.subtitle import fix_line_ending
from subliminal_patch.exceptions import TooManyRequests
@@ -45,7 +44,8 @@ class ProviderRetryMixin(object):
while i <= amount:
try:
return f()
- except (Unauthorized, ServiceUnavailable, TooManyRequests, DownloadLimitExceeded, ResponseNotReady):
+ except (Unauthorized, ServiceUnavailable, TooManyRequests, DownloadLimitExceeded, ResponseNotReady,
+ ConfigurationError, AuthenticationError):
raise
except exc:
formatted_exc = traceback.format_exc()