-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ex_handling): Don't let finally block mask ex
We have a project with test code which utilizes collective.solr which utilizes collective.indexing which pushes index operations to the pre commit phase. In our case an exception was then thrown during commit within the zopeApp context. closing the connection in the finally statement raised another exception because of the unclean state left by the first exception. This exception in the finally block totally masked the original exception, hindering bug fixing.
- Loading branch information
Showing
2 changed files
with
28 additions
and
8 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
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