summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r--Lib/traceback.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py
index 7fc209e..70d3230 100644
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -87,6 +87,8 @@ def format_exception(etype, value, tb, limit = None):
if tb:
list = ['Traceback (innermost last):\n']
list = list + format_tb(tb, limit)
+ else:
+ list = []
list = list + format_exception_only(etype, value)
return list