File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 2424from coverage .core import CTRACER_FILE
2525from coverage .data import combinable_files , debug_data_file
2626from coverage .debug import info_header , short_stack , write_formatted_info
27- from coverage .exceptions import NoSource , _BaseCoverageException , _ExceptionDuringRun
27+ from coverage .exceptions import NoSource , CoverageException , _ExceptionDuringRun
2828from coverage .execfile import PyRunner
2929from coverage .results import display_covered , should_fail_under
3030from coverage .version import __url__
@@ -1139,7 +1139,7 @@ def main(argv: list[str] | None = None) -> int | None:
11391139 # exception.
11401140 traceback .print_exception (* err .args ) # pylint: disable=no-value-for-parameter
11411141 status = ERR
1142- except _BaseCoverageException as err :
1142+ except CoverageException as err :
11431143 # A controlled error inside coverage.py: print the message to the user.
11441144 msg = err .args [0 ]
11451145 if err .slug :
Original file line number Diff line number Diff line change 88from typing import Any
99
1010
11- class _BaseCoverageException (Exception ):
12- """The base-base of all Coverage exceptions."""
11+ class CoverageException (Exception ):
12+ """The base class of all exceptions raised by Coverage.py ."""
1313
1414 def __init__ (self , * args : Any , slug : str | None = None ) -> None :
1515 super ().__init__ (* args )
1616 self .slug = slug
1717
1818
19- class CoverageException (_BaseCoverageException ):
20- """The base class of all exceptions raised by Coverage.py."""
21-
22- pass
23-
24-
25- class ConfigError (_BaseCoverageException ):
19+ class ConfigError (CoverageException ):
2620 """A problem with a config file, or a value in one."""
2721
2822 pass
You can’t perform that action at this time.
0 commit comments