diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-12-20 07:00:39 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-12-20 07:00:39 +0600 |
commit | 9b9c5355e4c0fe6f9028aaa3b1b8beb28a085433 (patch) | |
tree | a1c288b01778d4d8e0c661ed0766f149fb2532ba /youtube_dl/extractor/youtube.py | |
parent | d890b4cc0ac6b88daa917a1a791afe7541cd0411 (diff) |
Rename error_to_str to error_to_compat_str
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index d63aa5f4e..89759a1cb 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -26,7 +26,7 @@ from ..compat import ( from ..utils import ( clean_html, encode_dict, - error_to_str, + error_to_compat_str, ExtractorError, float_or_none, get_element_by_attribute, @@ -904,7 +904,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 'https://video.google.com/timedtext?hl=en&type=list&v=%s' % 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 {} sub_lang_list = {} |