[issue10805] traceback.print_exception throws AttributeError when exception is None

Boris FELD report at bugs.python.org
Sun Dec 18 00:33:42 CET 2011


Boris FELD <lothiraldan at gmail.com> added the comment:

I add a test to test_traceback.py for this bug. Bug is confirmed on python 3.2 and python3.3. I use 2.x behavior as reference.

I don't know if we should add an assertion in traceback.print_exception or traceback._iter_chain, so I add the test for traceback.print_exception.

----------
keywords: +patch
nosy: +Boris.FELD
Added file: http://bugs.python.org/file24011/new_traceback_test_print_traceback.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10805>
_______________________________________


More information about the Python-bugs-list mailing list