diff --git a/src/caoscrawler/sync_graph.py b/src/caoscrawler/sync_graph.py index 10c827390e8672f2b8935c9b7921aebeb43bd6c1..bacfde80c339cda85eaceb486bc6961ba44bf123 100644 --- a/src/caoscrawler/sync_graph.py +++ b/src/caoscrawler/sync_graph.py @@ -546,6 +546,8 @@ class SyncGraph: identifiable when none of the two nodes had the sufficient properties on its own before) - check whether dependent nodes can now get an identifiable (the merge might have set the ID such that dependent nodes can now create an identifiable) + + Last review by Alexander Schlemmer on 2024-05-29. """ # sanity checks if source is target: @@ -617,8 +619,9 @@ class SyncGraph: # - merge self._add_identifiables_to_dependent_nodes(target) - if self.get_equivalent(target) is not None: - self._merge_into(target, self.get_equivalent(target)) + eq_node = self.get_equivalent(target) + if eq_node is not None: + self._merge_into(target, eq_node) def _identifiable_is_needed(self, node: SyncNode): """