A feature-rich command-line audio/video downloader
[youku] check for the correct variable
remitamine35e22b6b32d0
diff --git a/youtube_dl/extractor/youku.py b/youtube_dl/extractor/youku.pyindex d33caa79ea..3a3432be85 100644--- a/youtube_dl/extractor/youku.py+++ b/youtube_dl/extractor/youku.py@@ -221,7 +221,7 @@ class YoukuIE(InfoExtractor):'Youku said: Sorry, this video is available in China only', expected=True)else:msg = 'Youku server reported error %i' % error.get('code')- if error is not None:+ if error_note is not None:msg += ': ' + error_noteraise ExtractorError(msg)