KEMBAR78
Fix error handling in the rewrite function by Qwerty-133 · Pull Request #468 · theskumar/python-dotenv · GitHub
Skip to content

Conversation

@Qwerty-133
Copy link
Contributor

Currently, if an error is raised while using files from the rewrite function, then the temporary file is deleted before closing it.

This is okay on unix, but unlinking open files causes an error on Windows.

@theskumar theskumar merged commit 6ff1391 into theskumar:main Jan 23, 2024
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.

2 participants