summaryrefslogtreecommitdiffstats
path: root/Lib/lib-old/tb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib-old/tb.py')
-rw-r--r--Lib/lib-old/tb.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/lib-old/tb.py b/Lib/lib-old/tb.py
index 6b9cd9a..0442ba8 100644
--- a/Lib/lib-old/tb.py
+++ b/Lib/lib-old/tb.py
@@ -74,7 +74,10 @@ def browserexec(tb, cmd):
exec(cmd+'\n', globals, locals)
except:
print '*** Exception:',
- print sys.exc_type,
+ if type(sys.exc_type) == type(''):
+ print sys.exc_type,
+ else:
+ print sys.exc_type.__name__,
if sys.exc_value <> None:
print ':', sys.exc_value,
print