(method: str, url: str, *, timeout: float, data: bytes | None = None, headers: dict[str, str] | None = None)
| 227 | |
| 228 | |
| 229 | def _request_supported_contract(method: str, url: str, *, timeout: float, data: bytes | None = None, headers: dict[str, str] | None = None) -> Any: |
| 230 | try: |
| 231 | return _request_json(method, url, timeout=timeout, data=data, headers=headers) |
| 232 | except ModlyCliError as exc: |
| 233 | if exc.http_status == 404: |
| 234 | raise _unsupported_process() from exc |
| 235 | raise |
| 236 | |
| 237 | |
| 238 | def _repo_root() -> Path: |
no test coverage detected