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):