From e1628d76fd20340288c744198310d873d409bf66 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 23 Jun 2021 23:13:22 -0400 Subject: [PATCH] no log: trying to improve os.com provider --- libs/subliminal_patch/providers/opensubtitlescom.py | 3 +++ 1 file changed, 3 insertions(+) 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)