From: Guido van Rossum Date: Wed, 18 Mar 1998 17:48:06 +0000 (+0000) Subject: Add obvious needed else clause to format_exception(). X-Git-Tag: v1.5.1~336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f0666c4a25b39b5a039a7f36aa4864c9c3f7217;p=thirdparty%2FPython%2Fcpython.git Add obvious needed else clause to format_exception(). --- diff --git a/Lib/traceback.py b/Lib/traceback.py index 7fc209ee143f..70d323034ff5 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