1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-05-19 11:39:28 +00: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)