Skip to content

Commit 57b76f0

Browse files
Fix empty properties bug (#295)
Co-authored-by: Antonio Filipovic <[email protected]>
1 parent d4602ee commit 57b76f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

e2e_correctness/query_neo_mem.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __eq__(self, other):
113113
return False
114114
if v != other._properties[k]:
115115
logger.debug(f"Value {v} not equal to {other._properties[k]}")
116-
return False
116+
return False
117117
return True
118118

119119

@@ -203,6 +203,8 @@ def create_graph_neo4j_json(json_neo4j_data) -> Graph:
203203
graph.add_vertex(extract_vertex_from_json(item))
204204
vertices_id_mapings[item["id"]] = item["properties"]["id"]
205205
else:
206+
if "properties" not in item:
207+
item["properties"] = {}
206208
graph.add_edge(
207209
create_edge_from_data(
208210
vertices_id_mapings[item["start"]["id"]],

0 commit comments

Comments
 (0)