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