1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-27 15:16:57 +01:00

Make signature of fake YoutubeDL.report_warning() match the real one (per 640d39f)

This commit is contained in:
dirkf 2024-02-21 15:29:16 +00:00 committed by GitHub
parent 2bd001fa8c
commit 15b06163a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,7 @@ class YoutubeDL(youtube_dl.YoutubeDL):
self.processed_info_dicts = []
super(YoutubeDL, self).__init__(*args, **kwargs)
def report_warning(self, message):
def report_warning(self, message, *args, **kwargs):
# Don't accept warnings during tests
raise ExtractorError(message)