diff -r d856023fbeb0 -r fcca2fa618bf eric7/DebugClients/Python/coverage/inorout.py --- a/eric7/DebugClients/Python/coverage/inorout.py Sun Jan 16 20:28:42 2022 +0100 +++ b/eric7/DebugClients/Python/coverage/inorout.py Sat Jan 22 14:44:56 2022 +0100 @@ -15,7 +15,7 @@ from coverage import env from coverage.disposition import FileDisposition, disposition_init -from coverage.exceptions import CoverageException +from coverage.exceptions import CoverageException, PluginError from coverage.files import TreeMatcher, FnmatchMatcher, ModuleMatcher from coverage.files import prep_patterns, find_python_files, canonical_filename from coverage.misc import sys_modules_saved @@ -120,7 +120,7 @@ path = [] try: spec = importlib.util.find_spec(modulename) - except ImportError: + except Exception: pass else: if spec is not None: @@ -243,6 +243,9 @@ if self.debug: self.debug.write(msg) + # Generally useful information + debug("sys.path:" + "".join(f"\n {p}" for p in sys.path)) + # Create the matchers we need for should_trace if self.source or self.source_pkgs: against = [] @@ -392,7 +395,7 @@ if not disp.has_dynamic_filename: if not disp.source_filename: - raise CoverageException( + raise PluginError( f"Plugin {plugin!r} didn't set source_filename for '{disp.original_filename}'" ) reason = self.check_include_omit_etc(disp.source_filename, frame)