[VrtNU] Handle login errors (#977)

Authored by: llacb47
This commit is contained in:
LE 2021-09-14 16:58:49 -04:00 committed by GitHub
parent 1722099ded
commit cc33cc4395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -286,6 +286,9 @@ class VrtNUIE(GigyaBaseIE):
'targetEnv': 'jssdk', 'targetEnv': 'jssdk',
})) }))
if auth_info.get('errorDetails'):
raise ExtractorError('Unable to login: VrtNU said: ' + auth_info.get('errorDetails'), expected=True)
# Sometimes authentication fails for no good reason, retry # Sometimes authentication fails for no good reason, retry
login_attempt = 1 login_attempt = 1
while login_attempt <= 3: while login_attempt <= 3: