GPT-5 finding
Bankr HTTP client does not handle URLError/timeouts; process may crash with an unhandled exception
- agenticbets/scripts/agenticbets.py:62-68
Only HTTPError is caught. URLError (DNS failure, connection timeout) or socket.timeout will raise and bubble up, likely printing a traceback instead of a clean error. fetch_markets properly catches Exception; bankr_request should mirror that resilience.
Recommendation
Catch urllib.error.URLError and socket.timeout; print a clear error and exit non-zero. Optionally retry transient errors with backoff.