fix(discovery): narrow ValueError catch to only parse_job_id #125

Merged
fuzzy merged 1 commit from fix/0078-narrow-except-valueerror into main 2026-07-05 16:12:35 +00:00
Owner

What

Narrow the try/except ValueError to only wrap parse_job_id() instead of three function calls.

Why

Prevents silent swallowing of ValueError if detect_job_type or load_job_config ever raise in the future.

Testing

  • 145 unit tests pass
  • Pre-commit hooks pass

Closes #78

## What Narrow the `try/except ValueError` to only wrap `parse_job_id()` instead of three function calls. ## Why Prevents silent swallowing of ValueError if `detect_job_type` or `load_job_config` ever raise in the future. ## Testing - [x] 145 unit tests pass - [x] Pre-commit hooks pass Closes #78
fix(discovery): narrow ValueError catch to only parse_job_id
All checks were successful
CI / test (pull_request) Successful in 54s
CI / lint (pull_request) Successful in 1m24s
05e7bc6ff4
Prevents silent swallowing of ValueError from detect_job_type
or load_job_config if they ever raise in the future.
Closes #78
the.auditor left a comment

Automated Review — PR #125

Result: APPROVED


Clean fix — narrows try/except ValueError to only wrap parse_job_id() instead of three function calls. Closes #78.

No suggestions.

## Automated Review — PR #125 **Result: APPROVED** --- Clean fix — narrows `try/except ValueError` to only wrap `parse_job_id()` instead of three function calls. Closes #78. No suggestions.
fuzzy merged commit 05e7bc6ff4 into main 2026-07-05 16:12:35 +00:00
fuzzy deleted branch fix/0078-narrow-except-valueerror 2026-07-05 16:12:35 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/kronai!125
No description provided.