Browse Source

[dailymotion] Error spelling

Sergey M․ 10 years ago
parent
commit
7593fbaa12
1 changed files with 2 additions and 2 deletions
  1. 2 2
      youtube_dl/extractor/dailymotion.py

+ 2 - 2
youtube_dl/extractor/dailymotion.py

@@ -254,8 +254,8 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
 
     def _check_error(self, info):
         if info.get('error') is not None:
-            msg = 'Couldn\'t get video, Dailymotion says: %s' % info['error']['title']
-            raise ExtractorError(msg, expected=True)
+            raise ExtractorError(
+                '%s said: %s' % (self.IE_NAME, info['error']['title']), expected=True)
 
     def _get_subtitles(self, video_id, webpage):
         try: