The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(kanban): narrow _nonnegative_int except to ValueError
kshitijk4poor1c189141b0e5
diff --git a/hermes_cli/kanban_parser.py b/hermes_cli/kanban_parser.pyindex 3d9aab07759..8a65d413467 100644--- a/hermes_cli/kanban_parser.py+++ b/hermes_cli/kanban_parser.py@@ -47,7 +47,7 @@ def _nonnegative_int(value: str) -> int:that matches every row, so reject it at the CLI boundary before any sweep."""try:parsed = int(value)- except (TypeError, ValueError) as exc:+ except ValueError as exc:raise argparse.ArgumentTypeError("must be an integer") from excif parsed < 0:raise argparse.ArgumentTypeError("retention days must be >= 0 (0 disables that sweep)")