Commit e5e81a6
committed
minor #43778 Use try/finally to restore error handlers (derrabus)
This PR was merged into the 5.4 branch.
Discussion
----------
Use try/finally to restore error handlers
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | N/A
| License | MIT
| Doc PR | N/A
This PR attempts to make some code dealing with temporary error handlers a bit more robust by making sure the old error handler is always restored. A forgotten error handler is pretty hard to debug, so I'd like our code to be a it more defensive here.
Commits
-------
057716c6a2 Use try/finally to restore error handlers1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
740 | | - | |
| 740 | + | |
| 741 | + | |
741 | 742 | | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | 743 | | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | 744 | | |
750 | 745 | | |
751 | 746 | | |
| |||
0 commit comments