summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-05-02 17:36:09 (GMT)
committerGuido van Rossum <guido@python.org>2006-05-02 17:36:09 (GMT)
commit8f6cbe150228f175b57b7a774d0a630febe72244 (patch)
treebba118613b94595c6796db19a046000d45913037 /Lib/traceback.py
parenta883701dff079948f1f74cbbabb4d88a63794d2b (diff)
downloadcpython-8f6cbe150228f175b57b7a774d0a630febe72244.zip
cpython-8f6cbe150228f175b57b7a774d0a630febe72244.tar.gz
cpython-8f6cbe150228f175b57b7a774d0a630febe72244.tar.bz2
Fix the formatting of KeyboardInterrupt -- a bad issubclass() call.
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r--Lib/traceback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py
index 454eb1b..d900f52 100644
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -158,7 +158,7 @@ def format_exception_only(etype, value):
"""
list = []
if (type(etype) == types.ClassType
- or (isinstance(etype, type) and issubclass(etype, Exception))):
+ or (isinstance(etype, type) and issubclass(etype, BaseException))):
stype = etype.__name__
else:
stype = etype