2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-05-01 12:57:45 +00:00

Fix transmit of notfound errors

This commit is contained in:
Jarrod Johnson
2026-03-02 08:41:18 -05:00
parent c8fcb716fb
commit a31532d8e4

View File

@@ -249,9 +249,9 @@ async def process_request(
else:
hdlr = pluginapi.handle_path(path, operation, cfm, params)
except exc.NotFoundException as e:
send_data(connection, {"errorcode": 404,
"error": "Target not found - " + str(e)})
send_data(connection, {"_requestdone": 1})
await send_data(connection, {"errorcode": 404,
"error": "Target not found - " + str(e)})
await send_data(connection, {"_requestdone": 1})
except exc.InvalidArgumentException as e:
await send_data(connection, {"errorcode": 400,
"error": "Bad Request - " + str(e)})