1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 06:35:12 +00:00

[cleanup, utils] Don't use kwargs for format_field

This commit is contained in:
pukkandan
2022-06-18 07:30:12 +05:30
parent e121e3cee7
commit a70635b8a1
25 changed files with 32 additions and 32 deletions

View File

@@ -1038,10 +1038,10 @@ class ExtractorError(YoutubeDLError):
self.exc_info = sys.exc_info() # preserve original exception
super().__init__(''.join((
format_field(ie, template='[%s] '),
format_field(video_id, template='%s: '),
format_field(ie, None, '[%s] '),
format_field(video_id, None, '%s: '),
msg,
format_field(cause, template=' (caused by %r)'),
format_field(cause, None, ' (caused by %r)'),
'' if expected else bug_reports_message())))
def format_traceback(self):