Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if file is writable before flushing #522

Merged
merged 2 commits into from
Nov 28, 2023
Merged

Conversation

PaulFarault
Copy link
Contributor

Which issue(s) this PR fixes

Fixes None

Additional comments

IMO it makes more sense to check if the file is writable before flushing on disk.

Flushing on disk on a non writable file should raise an error.

Agreements

@PaulFarault PaulFarault self-assigned this Nov 22, 2023
@sergkudinov
Copy link
Contributor

I added a unit test for that

@PaulFarault PaulFarault merged commit 902a100 into master Nov 28, 2023
5 checks passed
@PaulFarault PaulFarault deleted the fix-variables-file branch November 28, 2023 14:23
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.

4 participants