1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-29 21:52:54 +00:00

[youku] check for the correct variable

This commit is contained in:
remitamine 2015-12-17 12:51:50 +01:00
parent 323f82a7e0
commit 35e22b6b32

View file

@ -221,7 +221,7 @@ class YoukuIE(InfoExtractor):
'Youku said: Sorry, this video is available in China only', expected=True) 'Youku said: Sorry, this video is available in China only', expected=True)
else: else:
msg = 'Youku server reported error %i' % error.get('code') msg = 'Youku server reported error %i' % error.get('code')
if error is not None: if error_note is not None:
msg += ': ' + error_note msg += ': ' + error_note
raise ExtractorError(msg) raise ExtractorError(msg)