Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_POST
Method · 0.95
Calls
1
send_json
Method · 0.95
Tested by
no test coverage detected