-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
omics/managers: ensure the log file for update_from_pipeline() is closed
Saw a ResourceWarning issued inside the atomic_dry wrapper, so let's make sure the file is written to and closed properly before it returns to the atomic_dry wrapper. Implemented via ExitStack since the log file opening is conditional. The input file is now also opened via the ExitStack to keep the indentation level for the input file handling portion as-is.
- Loading branch information
Showing
1 changed file
with
65 additions
and
56 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