MCPcopy
hub / github.com/wechaty/python-wechaty / error

Function error

src/wechaty/schema.py:76–85  ·  view source on GitHub ↗

make the error response with msg Args: msg (str): the error msg string of data

(msg: str)

Source from the content-addressed store, hash-verified

74
75
76def error(msg: str) -> Response:
77 """make the error response with msg
78
79 Args:
80 msg (str): the error msg string of data
81 """
82 return jsonify(dict(
83 code=500,
84 msg=msg
85 ))
86
87
88@dataclass

Callers 3

change_statusMethod · 0.90
get_plugin_settingMethod · 0.90
update_plugin_settingMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected