]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[dailymotion] Error spelling
authorSergey M․ <dstftw@gmail.com>
Sat, 17 Oct 2015 19:00:37 +0000 (01:00 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 17 Oct 2015 19:00:37 +0000 (01:00 +0600)
youtube_dl/extractor/dailymotion.py

index ea1edceb1bb8767332a8d587b408dd5076ca79e5..9cd9ff17d2559a5648e72b1f425ba0aee5ed42b4 100644 (file)
@@ -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: