diff options
Diffstat (limited to 'coverage/python.py')
-rw-r--r-- | coverage/python.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coverage/python.py b/coverage/python.py index 969bfa89..78c3e716 100644 --- a/coverage/python.py +++ b/coverage/python.py @@ -57,9 +57,7 @@ def get_python_source(filename): break else: # Couldn't find source. - exc_msg = f"No source for code: '{filename}'.\n" - exc_msg += "Aborting report output, consider using -i." - raise NoSource(exc_msg) + raise NoSource(f"No source for code: '{filename}'.") # Replace \f because of http://bugs.python.org/issue19035 source = source.replace(b'\f', b' ') |