Rename error_to_str to error_to_compat_str
This commit is contained in:
parent
d890b4cc0a
commit
9b9c5355e4
7 changed files with 17 additions and 17 deletions
|
@ -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 = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue