Skip to content

Prevent file-handle leaks in FileClass - #61

Open
utsinboots wants to merge 1 commit into
OSeMOSYS:masterfrom
utsinboots:fix/file-handle-management
Open

Prevent file-handle leaks in FileClass#61
utsinboots wants to merge 1 commit into
OSeMOSYS:masterfrom
utsinboots:fix/file-handle-management

Conversation

@utsinboots

Copy link
Copy Markdown

Summary

Ports the applicable file-handle management fix previously merged in MUIOGO.
Uses context managers in the shared JSON read and write helpers so files are closed reliably, including when an exception occurs. Existing MUIO comments and behavior are preserved.

Testing
-Verified JSON writing and reading with the updated FileClass helpers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant