diff options
author | dirkf <fieldhouse@gmx.net> | 2023-07-07 18:45:31 +0100 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2023-07-18 10:50:46 +0100 |
commit | d5ef405c5d533c85cebd205a5b7958614c7013f3 (patch) | |
tree | a358f3ab775a1808c25e09e71b42da61286f8a14 /test/helper.py | |
parent | f47fdb9564d3ca1c0fa70ed6031148ec908fdc7b (diff) |
[core] Align error reporting methods with yt-dlp
Diffstat (limited to 'test/helper.py')
-rw-r--r-- | test/helper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/helper.py b/test/helper.py index 883b2e877..e3314b03e 100644 --- a/test/helper.py +++ b/test/helper.py @@ -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): |