Ticket #17699: f_locals.patch

File f_locals.patch, 648 bytes (added by eric.buckley@…, 13 years ago)
  • django/views/debug.py

     
    368368        while tb is not None:
    369369            # Support for __traceback_hide__ which is used by a few libraries
    370370            # to hide internal frames.
    371             if tb.tb_frame.f_locals.get('__traceback_hide__'):
     371            f_locals = getattr(tb.tb_frame, 'f_locals', {})
     372            if f_locals.get('__traceback_hide__', None):
    372373                tb = tb.tb_next
    373374                continue
    374375            filename = tb.tb_frame.f_code.co_filename
Back to Top