mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-07-14 09:37:34 -05:00
[core] Align error reporting methods with yt-dlp
This commit is contained in:
@ -72,7 +72,8 @@ class FakeYDL(YoutubeDL):
|
||||
def to_screen(self, s, skip_eol=None):
|
||||
print(s)
|
||||
|
||||
def trouble(self, s, tb=None):
|
||||
def trouble(self, *args, **kwargs):
|
||||
s = args[0] if len(args) > 0 else kwargs.get('message', 'Missing message')
|
||||
raise Exception(s)
|
||||
|
||||
def download(self, x):
|
||||
|
Reference in New Issue
Block a user