Commit 9e86cb2
fix: quoting for SLURM partition (#399)
Fixes TypeError when partition is an int. (TypeError: expected string or
bytes-like object, got 'int' from shlex.quote())
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Safely handle SLURM partition inputs by converting non-string values
to strings before quoting, preventing errors when users provide numeric
or other non-string partition values and improving robustness of
partition handling.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Christian Meesters <cmeesters@users.noreply.github.com>1 parent a905182 commit 9e86cb2
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
| 971 | + | |
| 972 | + | |
972 | 973 | | |
973 | 974 | | |
974 | 975 | | |
| |||
0 commit comments