From 7d0e0e1c8cb5f9ef7a18e1bceafa46255883a9b3 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 17 May 2009 14:53:00 -0400 Subject: When printing exceptions in a report, just use the name of the exception. --- coverage/summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/summary.py') diff --git a/coverage/summary.py b/coverage/summary.py index 659ff9ee..4a2ee60f 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -60,7 +60,7 @@ class SummaryReporter(Reporter): except: if not self.ignore_errors: typ, msg = sys.exc_info()[:2] - outfile.write(fmt_err % (cu.name, typ, msg)) + outfile.write(fmt_err % (cu.name, typ.__name__, msg)) if total_units > 1: outfile.write(rule) -- cgit v1.2.1