[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
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
25 changed files with 32 additions and 32 deletions

View file

@ -1050,7 +1050,7 @@ class InfoExtractor:
self._sleep(timeout, video_id)
def report_warning(self, msg, video_id=None, *args, only_once=False, **kwargs):
idstr = format_field(video_id, template='%s: ')
idstr = format_field(video_id, None, '%s: ')
msg = f'[{self.IE_NAME}] {idstr}{msg}'
if only_once:
if f'WARNING: {msg}' in self._printed_messages:
@ -1096,7 +1096,7 @@ class InfoExtractor:
self.get_param('ignore_no_formats_error') or self.get_param('wait_for_video')):
self.report_warning(msg)
return
msg += format_field(self._login_hint(method), template='. %s')
msg += format_field(self._login_hint(method), None, '. %s')
raise ExtractorError(msg, expected=True)
def raise_geo_restricted(