1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2025-01-10 07:07:55 +01:00

[AnimeLab] Do not use fatal with default

This commit is contained in:
Mariusz Skoneczko 2017-07-09 13:10:34 +10:00
parent ab2c141611
commit 72350e39f6

View File

@ -48,7 +48,7 @@ class AnimeLabBaseIE(InfoExtractor):
page = e.cause.read().decode('utf-8')
js_error = self._search_regex(
r'Utils\.notify\( *?[\'"]error[\'"] *?, *?[\'"](.*?)[\'"]',
page, 'Trying to get error message in js', default=None, fatal=False)
page, 'Trying to get error message in js', default=None)
if js_error:
raise ExtractorError('Unable to log in: %s' % js_error, expected=True)