[issue6307] AttributeError in traceback.print_last()

Viktor Ferenczi report at bugs.python.org
Thu Jun 18 13:41:49 CEST 2009


Viktor Ferenczi <python at cx.hu> added the comment:

>From the manual of the sys module:

"""
last_type 
last_value
last_traceback

These three variables are not always defined; they are set when an
exception is not handled and the interpreter prints an error message and
a stack traceback.
"""

So the AttributeError is normal in this case.

Changed the bug type to "behavior", since a more meaningful error
message than AttributeError would be very useful in this case.

Thanks.

----------
type: crash -> behavior

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


More information about the Python-bugs-list mailing list