Skip to content

Raise ValueError on slurm_update_reservation#257

Merged
tazend merged 1 commit intoPySlurm:mainfrom
pllopis:fix/update_reservation_raise
Jan 6, 2023
Merged

Raise ValueError on slurm_update_reservation#257
tazend merged 1 commit intoPySlurm:mainfrom
pllopis:fix/update_reservation_raise

Conversation

@pllopis
Copy link
Copy Markdown
Contributor

@pllopis pllopis commented Jan 6, 2023

To be consistent with other functions and methods, we need to raise a ValueError instead of just returning the error code. This also allows client applications to more easily interpret the reason for the error.

To be consistent with other functions and methods, we need to raise a
ValueError instead of just returning the error code. This also allows
client applications to more easily interpret the reason for the error.
@tazend tazend self-assigned this Jan 6, 2023
@tazend tazend merged commit 2617092 into PySlurm:main Jan 6, 2023
tazend pushed a commit that referenced this pull request Jan 19, 2023
To be consistent with other functions and methods, we need to raise a
ValueError instead of just returning the error code. This also allows
client applications to more easily interpret the reason for the error.
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