1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-21 00:25:42 +07:00

Properly convert errors to strings

This commit is contained in:
Sergey M․
2015-12-20 05:27:38 +06:00
parent fdae235858
commit 7f8b271465
6 changed files with 17 additions and 19 deletions

View File

@@ -26,6 +26,7 @@
from ..utils import (
clean_html,
encode_dict,
error_to_str,
ExtractorError,
float_or_none,
get_element_by_attribute,
@@ -903,7 +904,7 @@ def _get_subtitles(self, video_id, webpage):
'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' % compat_str(err))
self._downloader.report_warning('unable to download video subtitles: %s' % error_to_str(err))
return {}
sub_lang_list = {}