Kaydet (Commit) 3f0666c4 authored tarafından Guido van Rossum's avatar Guido van Rossum

Add obvious needed else clause to format_exception().

üst 2e6938f1
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment