Skip to content

Refactor file I/O to use context managers and fix bare excepts#19

Closed
avinxshKD wants to merge 1 commit intoControlCore-Project:mainfrom
avinxshKD:refactor/file-io-context-managers
Closed

Refactor file I/O to use context managers and fix bare excepts#19
avinxshKD wants to merge 1 commit intoControlCore-Project:mainfrom
avinxshKD:refactor/file-io-context-managers

Conversation

@avinxshKD
Copy link

@avinxshKD avinxshKD commented Feb 12, 2026

Replaced bare except: blocks with specific exceptions and added context managers for file operations that need explicit cleanup

closes #12

@avinxshKD
Copy link
Author

@pradeeban pls let me know if this makes sense, if adjustment needed pls let me know thanks

@pradeeban
Copy link
Member

Actually, you shouldn't be making code enhancements and refactors here. This is a minimal tutorial-style repository. If something is explicitly broken (i.e., it simply is not working), then fix it. Otherwise, please use your effort on fixing these respective files in the concore repository instead. We otherwise are going to be committing the same fixes twice - once in concore and then in concore-lite.

@pradeeban pradeeban closed this Feb 13, 2026
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.

Refactor file I/O to use context managers and fix bare excepts

2 participants