Island: Catch KeyError in AgentSignals resource's POST

This commit is contained in:
Shreya Malviya 2022-09-23 14:02:50 +05:30 committed by Mike Salvatore
parent cca4cf9df2
commit 1afe625395
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class AgentSignals(AbstractResource):
IslandEventTopic.TERMINATE_AGENTS, timestamp=terminate_timestamp
)
except (JSONDecodeError, TypeError, ValueError) as err:
except (JSONDecodeError, TypeError, ValueError, KeyError) as err:
return {"error": err}, HTTPStatus.BAD_REQUEST
return {}, HTTPStatus.NO_CONTENT