Rename error_to_str to error_to_compat_str

This commit is contained in:
Sergey M․ 2015-12-20 07:00:39 +06:00
parent d890b4cc0a
commit 9b9c5355e4
7 changed files with 17 additions and 17 deletions

View file

@ -9,7 +9,7 @@ from .common import InfoExtractor
from ..utils import (
determine_ext,
error_to_str,
error_to_compat_str,
ExtractorError,
int_or_none,
parse_iso8601,
@ -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' % error_to_str(err))
self._downloader.report_warning('unable to download video subtitles: %s' % error_to_compat_str(err))
return {}
info = json.loads(sub_list)
if (info['total'] > 0):