Commit 758a4b52 authored by Eelco van der Wel's avatar Eelco van der Wel :speech_balloon:
Browse files

ignore undefined edges in get_item

Showing with 4 additions and 1 deletion
+4 -1
......@@ -328,7 +328,10 @@ class PodClient:
item = self._get_item_with_properties(id)
edges = self.get_edges(id)
for e in edges:
item.add_edge(e["name"], e["item"])
if e["name"] in item.edges:
item.add_edge(e["name"], e["item"])
else:
logger.debug(f"Could not add edge {e['name']}: Edge is not defined on Item.")
return item
def get_edges(self, id):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment