summaryrefslogtreecommitdiff
path: root/coverage/inorout.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/inorout.py')
-rw-r--r--coverage/inorout.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/inorout.py b/coverage/inorout.py
index 174a19dc..87afdaaf 100644
--- a/coverage/inorout.py
+++ b/coverage/inorout.py
@@ -120,7 +120,7 @@ def file_and_path_for_module(modulename):
path = []
try:
spec = importlib.util.find_spec(modulename)
- except ImportError:
+ except Exception:
pass
else:
if spec is not None: