pyramid_debugtoolbar icon indicating copy to clipboard operation
pyramid_debugtoolbar copied to clipboard

Exception in interactive console chains in application exception

Open domenkozar opened this issue 13 years ago • 0 comments

Steps to reproduce

  • create intentional syntax error in a view
  • open that view, when you see the traceback, start interactive console
  • in interactive console, type something that will result in traceback, for example syntaxerror
  • if there is subscribed event to BeforeRender, which does something similar like this
def custom_event(event):
    request = event['request']
    # do something with request, this will fail since request will be None

Expected result:

traceback in web console

Actual result:

request object in event dictionary will be None, code using the request object will result in second unwanted exception breaking interactive console

domenkozar avatar Mar 11 '12 15:03 domenkozar