[New-bugs-announce] [issue6307] AttributeError in traceback.print_last()

Viktor Ferenczi report at bugs.python.org
Thu Jun 18 13:37:27 CEST 2009


New submission from Viktor Ferenczi <python at cx.hu>:

Python 2.5.4, Windows MSI installer, WinXP SP2, 32 bit:

Try the following code: (test script attached)

import traceback

try:
    someundefinedsymbol
except:
    traceback.print_last()

It will raise the following exception:

Traceback (most recent call last):
  File "bug.py", line 6, in <module>
    traceback.print_last()
  File "D:\Python25\lib\traceback.py", line 246, in print_last
    print_exception(sys.last_type, sys.last_value, sys.last_traceback,
AttributeError: 'module' object has no attribute 'last_type'

----------
components: Library (Lib)
messages: 89499
nosy: complex
severity: normal
status: open
title: AttributeError in traceback.print_last()
type: crash
versions: Python 2.5

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


More information about the New-bugs-announce mailing list