MCPcopy
hub / github.com/AstrBotDevs/AstrBot / _raise_command_error

Function _raise_command_error

astrbot/dashboard/api/extensions.py:35–36  ·  view source on GitHub ↗
(exc: CommandServiceError)

Source from the content-addressed store, hash-verified

33
34
35def _raise_command_error(exc: CommandServiceError) -> None:
36 raise ApiError(str(exc)) from exc
37
38
39async def _list_commands(config_id: str | None, service: CommandService):

Callers 5

_list_commandsFunction · 0.85
_list_command_conflictsFunction · 0.85
_toggle_commandFunction · 0.85
_rename_commandFunction · 0.85

Calls 1

ApiErrorClass · 0.90

Tested by

no test coverage detected