Add obvious needed else clause to format_exception().
This commit is contained in:
parent
2e6938f167
commit
3f0666c4a2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue