Commit 4dbfde21 authored by Alexandre Moevi's avatar Alexandre Moevi

refactor(GET): return error message instead of null

parent b6be2ba9
......@@ -72,6 +72,11 @@ def exports(ws):
"database, contact your administrator."},
HTTP_ERROR)
if document is None:
return gen_json_error(
{"description": "No webhook found with ID " + webhook_id},
HTTP_ERROR)
return gen_json(document)
@ws.application.post(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment