-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-push the frame, class, file, and line from the thread block.
When a non-local flow event bubbles out of a thread, it lazily triggers a LocalJumpError to be created, along which path a hook event for "raise" fires. Unfortunately this tries to access the current frame and stack trace information, which are already popped off the stack by the thread's proc. This change re-pushes that frame and stack trace info around the creation of the exception, so that the hook has appropriate info available. Fixes #3781
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters