mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-20 05:14:02 -07:00
[core] Align error reporting methods with yt-dlp
This commit is contained in:
parent
f47fdb9564
commit
d5ef405c5d
3 changed files with 36 additions and 16 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue