From 6807c8869a0a06f7eee5ae67f8c391d1e70c945e Mon Sep 17 00:00:00 2001 From: Laura Liberda Date: Mon, 18 Jan 2021 22:59:11 +0100 Subject: [PATCH] [playwright] fix tests again --- haruhi_dl/playwright.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/haruhi_dl/playwright.py b/haruhi_dl/playwright.py index 36c341b11..afdc45507 100644 --- a/haruhi_dl/playwright.py +++ b/haruhi_dl/playwright.py @@ -20,10 +20,9 @@ class PlaywrightHelper(): def _import_pw(cls, fatal=True): try: cls._real_import_pw() - except ImportError as err: + except ImportError: if fatal is True: - raise ExtractorError('Playwright could not be imported: %s' % err.msg if 'msg' in err else '[no err.msg]', - expected=True) + raise ExtractorError('Playwright could not be imported', expected=True) @classmethod def _version(cls):