Rename error_to_str to error_to_compat_str
[youtube-dl] / youtube_dl / extractor / youtube.py
index d63aa5f4e6e2eb78c100723f00d21f5648f1ca1e..89759a1cb02c990c8186612cbe88a8ae73ec3e84 100644 (file)
@@ -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 = {}