[playwright] fix tests again

merge-requests/5/head
Laura Liberda 2021-01-18 22:59:11 +01:00
parent 9224bfe84f
commit 6807c8869a
1 changed files with 2 additions and 3 deletions

View File

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