(base_url: str, timeout: float)
| 164 | |
| 165 | |
| 166 | def _try_health(base_url: str, timeout: float) -> dict[str, Any] | None: |
| 167 | try: |
| 168 | health = _request_json("GET", f"{base_url.rstrip('/')}/health", timeout=timeout) |
| 169 | except ModlyCliError: |
| 170 | return None |
| 171 | return health if isinstance(health, dict) else {"raw": health} |
| 172 | |
| 173 | |
| 174 | def _require_health(base_url: str, timeout: float) -> dict[str, Any]: |
no test coverage detected