We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 55e4d0b + c74b437 commit 147d7a0Copy full SHA for 147d7a0
src/app.py
@@ -883,7 +883,8 @@ def get_entity_by_id(id):
883
# Due to the use of entity cache from `query_target_entity()`, we don't want to exclude the `neo4j_top_props_to_skip`
884
# from actual Neo4j query. And it's not s performance concern neither. - Zhou 10/1/2025
885
for item in neo4j_top_props_to_skip:
886
- complete_dict.pop(item)
+ # Use default value to avoid KeyError if the key is not found
887
+ complete_dict.pop(item, f'Key {item} not found')
888
889
# Also normalize the result based on schema
890
final_result = schema_manager.normalize_entity_result_for_response(complete_dict)
0 commit comments