Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

[slurm] Lower scope of exception catch #4021

Merged
merged 2 commits into from
Dec 12, 2021
Merged

[slurm] Lower scope of exception catch #4021

merged 2 commits into from
Dec 12, 2021

Conversation

stephenroller
Copy link
Contributor

Patch description
As @moyapchen pointed out, we were catching and recasting any FileNotFoundError at the most top level of any distributed program. Any user code which happened to throw a FNFE was having their exception eaten and obscured.

This patch limits the try-catch scope to only the line it really intends to catch.

Testing steps
Launched a quick sweep to check the happy path still works.

@stephenroller stephenroller changed the title Lower scope of except catch [slurm] Lower scope of except catch Sep 16, 2021
@stephenroller stephenroller changed the title [slurm] Lower scope of except catch [slurm] Lower scope of exception catch Sep 16, 2021
@github-actions
Copy link

This PR has not had activity in 30 days. Closing due to staleness.

@github-actions github-actions bot added the stale label Oct 17, 2021
@stephenroller
Copy link
Contributor Author

boo

@moyapchen moyapchen merged commit b139a8d into main Dec 12, 2021
@moyapchen moyapchen deleted the fnf branch December 12, 2021 17:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants