]> granicus.if.org Git - python/commit
Fix a bug in traceback.format_exception_only() that led to an error
authorGeorg Brandl <georg@python.org>
Sun, 24 Sep 2006 12:50:28 +0000 (12:50 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 24 Sep 2006 12:50:28 +0000 (12:50 +0000)
commitedd81b2402ae7e3b1c4aa24f28f46567674d3a75
tree9c17e742d162d9b3f0ccf8468633bf59a7e1d1e6
parenta6b9ce185eec7127082c7d26112730099fa738ba
Fix a bug in traceback.format_exception_only() that led to an error
being raised when print_exc() was called without an exception set.
In version 2.4, this printed "None", restored that behavior.
 (backport from rev. 51995)
Lib/test/test_traceback.py
Lib/traceback.py
Misc/NEWS