MCPcopy
hub / github.com/lightningpixel/modly / ModlyCliError

Class ModlyCliError

tools/modly-cli/agent.py:48–55  ·  view source on GitHub ↗

Expected user/API failure that should be reported as JSON.

Source from the content-addressed store, hash-verified

46
47
48class ModlyCliError(RuntimeError):
49 """Expected user/API failure that should be reported as JSON."""
50
51 def __init__(self, message: str, *, code: str = "MODLY_CLI_ERROR", http_status: int | None = None) -> None:
52 super().__init__(message)
53 self.message = message
54 self.code = code
55 self.http_status = http_status
56
57
58def _json_print(data: dict[str, Any], *, compact: bool = False) -> None:

Callers 15

_request_jsonFunction · 0.85
_downloadFunction · 0.85
_validate_workspace_pathFunction · 0.85
_model_catalogFunction · 0.85
_validate_model_idFunction · 0.85
_unsupported_processFunction · 0.85
_resolve_serve_configFunction · 0.85
_parse_paramsFunction · 0.85
_choose_auto_modelFunction · 0.85
_resolve_model_idFunction · 0.85
_load_comfy_workflowFunction · 0.85
_patch_comfy_workflowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected