[New-bugs-announce] [issue10380] AttributeError: 'module' object has no attribute 'exc_traceback'

Peda Venkateswarlu Pola report at bugs.python.org
Wed Nov 10 07:29:25 CET 2010

New submission from Peda Venkateswarlu Pola <pola.venki at gmail.com>:

As we have some new requirements in standard logging, We have written wrapper logger. This includes find caller which gives information about filename , line number , class name and method name. As i found that python logger doesn't give class name so we get the code from python logger and modified to our requirement. 

We end up with the following error intermittently from the function "currentframe()" .

"AttributeError: 'module' object has no attribute 'exc_traceback'"

def currentframe():
    """Return the frame object for the caller's stack frame."""
        raise Exception
        return sys.exc_traceback.tb_frame.f_back

Please help me out ASAP.

Great thanks in advance.

components: None
files: findcaller_modi.py
messages: 120913
nosy: polavenki
priority: normal
severity: normal
status: open
title: AttributeError: 'module' object has no attribute 'exc_traceback'
type: crash
versions: Python 2.5
Added file: http://bugs.python.org/file19563/findcaller_modi.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list