Add obvious needed else clause to format_exception().

This commit is contained in:
Guido van Rossum 1998-03-18 17:48:06 +00:00
parent 2e6938f167
commit 3f0666c4a2
1 changed files with 2 additions and 0 deletions

View File

@ -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