[VrtNU] Handle login errors (#977)

Authored by: llacb47
pull/987/head
LE 3 years ago committed by GitHub
parent 1722099ded
commit cc33cc4395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -286,6 +286,9 @@ class VrtNUIE(GigyaBaseIE):
'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
login_attempt = 1
while login_attempt <= 3:

Loading…
Cancel
Save