diff options
author | Guido van Rossum <guido@python.org> | 1998-03-18 17:48:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-18 17:48:06 (GMT) |
commit | 3f0666c4a25b39b5a039a7f36aa4864c9c3f7217 (patch) | |
tree | c5d4ca35fad11668a7b0a2af681d59f3b2bfb62f /Lib | |
parent | 2e6938f167bc1ccd825fcad5cb610446e0c11817 (diff) | |
download | cpython-3f0666c4a25b39b5a039a7f36aa4864c9c3f7217.zip cpython-3f0666c4a25b39b5a039a7f36aa4864c9c3f7217.tar.gz cpython-3f0666c4a25b39b5a039a7f36aa4864c9c3f7217.tar.bz2 |
Add obvious needed else clause to format_exception().
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/traceback.py | 2 |
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 |