[playwright] fix tests again
This commit is contained in:
parent
9224bfe84f
commit
6807c8869a
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue