Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Exception in interactive console chains in application exception #56

Open
domenkozar opened this Issue Mar 11, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Member

domenkozar commented Mar 11, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment