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

Verify that an asset file to be copied exists #12183

Merged
merged 3 commits into from
Mar 23, 2024

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Mar 23, 2024

Closes #10786.

While this might come at a small cost for verifying whether the path exists or not, this is needed to get a better message because shutil.copyfile suppresses FileNotFoundError if the source does not exist.

@picnixz picnixz requested a review from jayaddison March 23, 2024 12:53
@picnixz picnixz merged commit d91ba11 into sphinx-doc:master Mar 23, 2024
22 checks passed
@picnixz picnixz deleted the fix/10786-file-removed-during-run branch March 23, 2024 13:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better crash messages when a file isn't found because it was removed by the user during the run
2 participants