mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-01 12:32:25 +08:00
no log: trying to improve os.com provider
This commit is contained in:
parent
d3879c1957
commit
e1628d76fd
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue