no log: deal with emails in opensubtitles.com

pull/2004/head v1.1.3
morpheus65535 1 year ago
parent 920e799468
commit 01557cbfbf

@ -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…
Cancel
Save