fix(client): default_gateway never raises

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uc9V1v7iXruubpoLiSE24M
This commit is contained in:
2026-09-21 09:17:48 -04:00
co-authored by Claude Sonnet 5
parent 82ba69d827
commit ad19d2596a
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -98,6 +98,6 @@ async def default_gateway(family: str) -> Optional[str]:
return parse_macos_route(await _run(cmd))
if sys.platform == "win32":
return parse_windows_route(await _run(["route", "print", "-4" if v4 else "-6"]), family)
except (OSError, asyncio.TimeoutError, ValueError):
except Exception:
return None
return None