Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

syntax errors not raised properly to Python

#36

Run time errors get raised very nicely, syntax errors, not so much.

Reported by j1m · January 23rd, 2011 @ 12:38 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. j1m
    j1m

    I miss-diagnosed this issue.

    The issue is that if Javascript calls Python, which calls context
    execute to call JavaScript code that raises an error, the original
    exception is lost. The context execute method raises a run time error
    with the message "Script execution failed and no exception was set",
    rather than the progonal error.

    I eventually came up with a hack arund that involved wrapping a
    JavaScript try/catch around the code being executed.

    February 15th, 2011 @ 05:18 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.