summaryrefslogtreecommitdiffhomepage
path: root/libs/subliminal_patch
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-06-23 23:13:22 -0400
committermorpheus65535 <[email protected]>2021-06-23 23:13:22 -0400
commite1628d76fd20340288c744198310d873d409bf66 (patch)
tree305c8223385f1b28e33510a34f7ea8e1a2a43801 /libs/subliminal_patch
parentd3879c1957af78b80463bd058e020c3fbcc26fa9 (diff)
downloadbazarr-e1628d76fd20340288c744198310d873d409bf66.tar.gz
bazarr-e1628d76fd20340288c744198310d873d409bf66.zip
no log: trying to improve os.com provider
Diffstat (limited to 'libs/subliminal_patch')
-rw-r--r--libs/subliminal_patch/providers/opensubtitlescom.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/subliminal_patch/providers/opensubtitlescom.py b/libs/subliminal_patch/providers/opensubtitlescom.py
index 1f5c8d62e..fd4bb6684 100644
--- a/libs/subliminal_patch/providers/opensubtitlescom.py
+++ b/libs/subliminal_patch/providers/opensubtitlescom.py
@@ -325,6 +325,9 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
if self.token is NO_VALUE:
logger.debug("No cached token, we'll try to login again.")
self.login()
+ if self.token is NO_VALUE:
+ logger.debug("Unable to obtain an authentication token right now, we'll try again later.")
+ raise ProviderError("Unable to obtain an authentication token")
logger.info('Downloading subtitle %r', subtitle)