commit | 4a26633e0e4ba756794e753cc0dec20535bb412a | [log] [tgz] |
---|---|---|
author | Phillip J. Eby <pje@telecommunity.com> | Fri Mar 24 22:10:54 2006 +0000 |
committer | Phillip J. Eby <pje@telecommunity.com> | Fri Mar 24 22:10:54 2006 +0000 |
tree | 8b36f3a89bcb23e1660d923a8d6bb08b1f6f892b | |
parent | fd3fcf0b35a479c3df4999d9bad2337a5e3af140 [diff] |
Revert r42719, because the isinstance() check wasn't redundant; formatting a string exception was causing a TypeError.
diff --git a/Lib/traceback.py b/Lib/traceback.py index 4971906..d4a4011 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py
@@ -158,7 +158,7 @@ """ list = [] if (type(etype) == types.ClassType - or issubclass(etype, Exception)): + or (isinstance(etype, type) and issubclass(etype, Exception))): stype = etype.__name__ else: stype = etype