Skip to content

Commit 190eabe

Browse files
committed
catch multiple exceptions
1 parent 9d95112 commit 190eabe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inline/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ def collect(self) -> Iterable[InlinetestItem]:
13951395
try:
13961396
# TODO: still need to find the right way to import without errors. mode=ImportMode.importlib did not work
13971397
module = import_path(self.path, root=self.config.rootpath)
1398-
except (ImportError or ModuleNotFoundError) as e:
1398+
except (ImportError, ModuleNotFoundError) as e:
13991399
if self.config.getvalue("inlinetest_ignore_import_errors"):
14001400
pytest.skip("unable to import module %r" % self.path)
14011401
else:

0 commit comments

Comments
 (0)