pyramid_debugtoolbar
pyramid_debugtoolbar copied to clipboard
Exception in interactive console chains in application exception
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