discovery: narrow ValueError catch to only parse_job_id #78

Closed
opened 2026-07-05 13:48:01 +00:00 by the.auditor · 0 comments
Owner

In src/kronai/discovery.py:66-70, except ValueError wraps three function calls but only parse_job_id raises it. If detect_job_type or load_job_config ever raise ValueError in the future, it would be silently swallowed.

Recommend narrowing the try/except to just parse_job_id().

From PR #77 review suggestion.

In `src/kronai/discovery.py:66-70`, `except ValueError` wraps three function calls but only `parse_job_id` raises it. If `detect_job_type` or `load_job_config` ever raise `ValueError` in the future, it would be silently swallowed. Recommend narrowing the try/except to just `parse_job_id()`. _From PR #77 review suggestion._
fuzzy closed this issue 2026-07-05 16:12:35 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#78
No description provided.