Skip to content

fix(cli): normalize invalid timeout parse errors#2876

Open
kuishou68 wants to merge 1 commit intosherlock-project:masterfrom
kuishou68:cocoon/triage-next-pr
Open

fix(cli): normalize invalid timeout parse errors#2876
kuishou68 wants to merge 1 commit intosherlock-project:masterfrom
kuishou68:cocoon/triage-next-pr

Conversation

@kuishou68
Copy link
Copy Markdown

Summary

  • convert non-numeric --timeout inputs into ArgumentTypeError instead of leaking a raw ValueError
  • keep the existing positive-number validation message unchanged
  • add a CLI regression test covering invalid timeout values

Notes

  • I couldn't run the Python test suite in this sandbox because there is no usable python3 / pytest runtime available here.
  • The change is intentionally small and only touches timeout argument validation plus the focused regression test.

Closes #2866

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.

cli: invalid --timeout values raise a raw parser exception

1 participant