[ie/vimeo] Fix login error handling (#14280)

Closes #14279
Authored by: bashonly
pull/14290/head^2
bashonly 1 week ago committed by GitHub
parent a1c98226a4
commit 679587dac7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -151,7 +151,7 @@ class VimeoBaseInfoExtractor(InfoExtractor):
'Referer': self._LOGIN_URL, 'Referer': self._LOGIN_URL,
}) })
except ExtractorError as e: except ExtractorError as e:
if isinstance(e.cause, HTTPError) and e.cause.status in (405, 418): if isinstance(e.cause, HTTPError) and e.cause.status in (404, 405, 418):
raise ExtractorError( raise ExtractorError(
'Unable to log in: bad username or password', 'Unable to log in: bad username or password',
expected=True) expected=True)

Loading…
Cancel
Save