]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF bug 431772: traceback.print_exc() causes traceback
authorTim Peters <tim.peters@gmail.com>
Sun, 10 Jun 2001 18:58:26 +0000 (18:58 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 10 Jun 2001 18:58:26 +0000 (18:58 +0000)
commit0bb580d297bdc6ccb33fcd15e317a79112e77750
tree8d119d7ac6a5aa063eee3c211f44f78e67044f3c
parent07c1922b12ae56dc892672d02f95e7521e1b8d55
SF bug 431772:  traceback.print_exc() causes traceback
Patch from Michael Hundson.
format_exception_only() blew up when trying to report a SyntaxError
from a string input (line is None in this case, but it assumed a string).
Bugfix candidate.
Lib/traceback.py