From 578079d995163f88575d9101fff26b2eb22ee035 2012-03-23 16:10:51 From: Robert Kern Date: 2012-03-23 16:10:51 Subject: [PATCH] BUG: Include the name of the exception type in its pretty format. Thanks to @doerwalter for noticing this. --- diff --git a/IPython/lib/pretty.py b/IPython/lib/pretty.py index 61792fd..85d30a5 100644 --- a/IPython/lib/pretty.py +++ b/IPython/lib/pretty.py @@ -628,7 +628,7 @@ def _exception_pprint(obj, p, cycle): obj.__class__.__name__ ) step = len(name) + 1 - p.begin_group(step, '(') + p.begin_group(step, name + '(') for idx, arg in enumerate(getattr(obj, 'args', ())): if idx: p.text(',')