summaryrefslogtreecommitdiff
path: root/coverage/misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/misc.py')
-rw-r--r--coverage/misc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/misc.py b/coverage/misc.py
index 473d7d43..2d2662da 100644
--- a/coverage/misc.py
+++ b/coverage/misc.py
@@ -146,6 +146,10 @@ class NoSource(CoverageException):
"""We couldn't find the source for a module."""
pass
+class NoCode(NoSource):
+ """We couldn't find any code at all."""
+ pass
+
class NotPython(CoverageException):
"""A source file turned out not to be parsable Python."""
pass