Skip to content

Fix unclosed file handle in outreach email body reading#185

Open
Hi-Gaurav wants to merge 1 commit intoFujiwaraChoki:mainfrom
Hi-Gaurav:fix/outreach-unclosed-file-handle
Open

Fix unclosed file handle in outreach email body reading#185
Hi-Gaurav wants to merge 1 commit intoFujiwaraChoki:mainfrom
Hi-Gaurav:fix/outreach-unclosed-file-handle

Conversation

@Hi-Gaurav
Copy link
Copy Markdown

Fixes #184

Changes

  • Replace bare open().read() with with open() context manager
  • Ensures file handle is properly closed after reading

The outreach message body file was opened with open() without a context
manager, leaving the file handle unclosed. Replaced with a with statement
to ensure proper cleanup.
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.

Unclosed file handle in outreach email body reading

1 participant