summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-03-18 17:48:06 (GMT)
committerGuido van Rossum <guido@python.org>1998-03-18 17:48:06 (GMT)
commit3f0666c4a25b39b5a039a7f36aa4864c9c3f7217 (patch)
treec5d4ca35fad11668a7b0a2af681d59f3b2bfb62f /Lib/traceback.py
parent2e6938f167bc1ccd825fcad5cb610446e0c11817 (diff)
downloadcpython-3f0666c4a25b39b5a039a7f36aa4864c9c3f7217.zip
cpython-3f0666c4a25b39b5a039a7f36aa4864c9c3f7217.tar.gz
cpython-3f0666c4a25b39b5a039a7f36aa4864c9c3f7217.tar.bz2
Add obvious needed else clause to format_exception().
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