aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/dailymotion.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-12-20 05:27:38 +0600
committerSergey M․ <dstftw@gmail.com>2015-12-20 05:27:38 +0600
commit7f8b271465df75bb1f83cb181dc45fee5fe02cf9 (patch)
treea17694aae937027a453b6d279dff3be5530e73e9 /youtube_dl/extractor/dailymotion.py
parentfdae2358581be6f80ac5fd20b1062e87a8797f46 (diff)
downloadyoutube-dl-7f8b271465df75bb1f83cb181dc45fee5fe02cf9.tar.xz
Properly convert errors to strings
Diffstat (limited to 'youtube_dl/extractor/dailymotion.py')
-rw-r--r--youtube_dl/extractor/dailymotion.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/dailymotion.py b/youtube_dl/extractor/dailymotion.py
index 428556213..7d66baf96 100644
--- a/youtube_dl/extractor/dailymotion.py
+++ b/youtube_dl/extractor/dailymotion.py
@@ -7,10 +7,10 @@ import itertools
from .common import InfoExtractor
-from ..compat import compat_str
from ..utils import (
- ExtractorError,
determine_ext,
+ error_to_str,
+ ExtractorError,
int_or_none,
parse_iso8601,
sanitized_Request,
@@ -278,7 +278,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'https://api.dailymotion.com/video/%s/subtitles?fields=id,language,url' % video_id,
video_id, note=False)
except ExtractorError as err:
- self._downloader.report_warning('unable to download video subtitles: %s' % compat_str(err))
+ self._downloader.report_warning('unable to download video subtitles: %s' % error_to_str(err))
return {}
info = json.loads(sub_list)
if (info['total'] > 0):