From 41fa1065c69f55def87e3fcecad602076d7cd790 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 25 Oct 2009 09:38:58 -0400 Subject: Treat missing source files nicer. --- coverage/misc.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coverage/misc.py') diff --git a/coverage/misc.py b/coverage/misc.py index 8a8b511..5ef982c 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -49,3 +49,7 @@ def format_lines(statements, lines): class CoverageException(Exception): """An exception specific to Coverage.""" pass + +class NoSource(CoverageException): + """Used to indicate we couldn't find the source for a module.""" + pass -- cgit v1.2.1