diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-13 16:05:37 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-13 16:05:37 -0500 |
commit | 79753a1476a407b4fe1fad69081395c497d53d21 (patch) | |
tree | 461d19a7f78ece7cf5cb27b3a6edc9977fcb40e4 /coverage/inorout.py | |
parent | 6a6b60426c3b45d91ab9211c50bea8ecc191e59a (diff) | |
download | python-coveragepy-git-79753a1476a407b4fe1fad69081395c497d53d21.tar.gz |
fix: suppress exceptions when finding source= modules. #1203
Diffstat (limited to 'coverage/inorout.py')
-rw-r--r-- | coverage/inorout.py | 2 |
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: |