Преглед изворни кода

[YoutubeDL] More error_to_str

Sergey M․ пре 10 година
родитељ
комит
8900ab4d9b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      youtube_dl/YoutubeDL.py

+ 1 - 1
youtube_dl/YoutubeDL.py

@@ -1511,7 +1511,7 @@ class YoutubeDL(object):
                             sub_info['url'], info_dict['id'], note=False)
                             sub_info['url'], info_dict['id'], note=False)
                     except ExtractorError as err:
                     except ExtractorError as err:
                         self.report_warning('Unable to download subtitle for "%s": %s' %
                         self.report_warning('Unable to download subtitle for "%s": %s' %
-                                            (sub_lang, compat_str(err.cause)))
+                                            (sub_lang, error_to_str(err.cause)))
                         continue
                         continue
                 try:
                 try:
                     sub_filename = subtitles_filename(filename, sub_lang, sub_format)
                     sub_filename = subtitles_filename(filename, sub_lang, sub_format)