[playwright] fix tests again

This commit is contained in:
Laura Liberda 2021-01-18 22:59:11 +01:00
parent 9224bfe84f
commit 6807c8869a

View file

@ -20,10 +20,9 @@ class PlaywrightHelper():
def _import_pw(cls, fatal=True): def _import_pw(cls, fatal=True):
try: try:
cls._real_import_pw() cls._real_import_pw()
except ImportError as err: except ImportError:
if fatal is True: if fatal is True:
raise ExtractorError('Playwright could not be imported: %s' % err.msg if 'msg' in err else '[no err.msg]', raise ExtractorError('Playwright could not be imported', expected=True)
expected=True)
@classmethod @classmethod
def _version(cls): def _version(cls):