mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-30 19:46:25 +00:00
no log: deal with emails in opensubtitles.com
This commit is contained in:
parent
920e799468
commit
01557cbfbf
1 changed files with 3 additions and 1 deletions
|
@ -443,7 +443,9 @@ def checked(fn, raise_api_limit=False, validate_token=False, validate_json=False
|
|||
except Exception:
|
||||
status_code = None
|
||||
else:
|
||||
if status_code == 401:
|
||||
if status_code == 400:
|
||||
raise ConfigurationError('Do not use email but username')
|
||||
elif status_code == 401:
|
||||
time.sleep(1)
|
||||
if validate_token:
|
||||
return 401
|
||||
|
|
Loading…
Reference in a new issue