MCPcopy Create free account
hub / github.com/WebODM/WebODM / send_error

Method send_error

app/tests/scripts/simple_auth_server.py:17–18  ·  view source on GitHub ↗
(self, code, error)

Source from the content-addressed store, hash-verified

15
16
17 def send_error(self, code, error):
18 self.send_json(code, {"error": error})
19
20 def send_json(self, code, data):
21 response = bytes(json.dumps(data), encoding="utf-8")

Callers 1

do_POSTMethod · 0.95

Calls 1

send_jsonMethod · 0.95

Tested by

no test coverage detected