Skip to content

Commit

Permalink
chore: improve not found error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-paliychuk committed Sep 20, 2024
1 parent 62b3f5f commit cc9eb9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/graph_service/zep_graphiti.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ async def delete_group(self, group_id: str):
await episode.delete(self.driver)
except EdgeNotFoundError as e:
raise HTTPException(status_code=404, detail=e.message) from e
except NodeNotFoundError as e:
raise HTTPException(status_code=404, detail=e.message) from e

async def delete_entity_edge(self, uuid: str):
try:
Expand Down

0 comments on commit cc9eb9f

Please sign in to comment.