MCPcopy Create free account
hub / github.com/anthropics/defending-code-reference-harness / _parse_exit_code

Function _parse_exit_code

harness/find.py:103–109  ·  view source on GitHub ↗
(s: str | None)

Source from the content-addressed store, hash-verified

101
102
103def _parse_exit_code(s: str | None) -> int:
104 if s is None:
105 return -1
106 s = s.strip()
107 if s.lstrip("-").isdigit():
108 return int(s)
109 return -1

Callers 1

run_findFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected