Skip to content
Snippets Groups Projects
Commit e276fc0e authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: correct the variable used; and better exception message

parent aa13deb0
No related branches found
No related tags found
1 merge request!108Release 0.5.0
Pipeline #34981 passed
......@@ -712,7 +712,7 @@ class Crawler(object):
# TODO: can the following be removed at some point
for ent in flat:
if ent.role == "Record" and len(ent.parents) == 0:
raise RuntimeError("Records must have a parent.")
raise RuntimeError(f"Records must have a parent.\n{ent}")
resolved_references = True
# flat contains Entities which could not yet be checked against the remote server
......@@ -1023,7 +1023,7 @@ class Crawler(object):
to_be_updated = self.remove_unnecessary_updates(to_be_updated, identified_records)
logger.info(f"Going to insert {len(to_be_inserted)} Entities and update "
f"{len(to_be_inserted)} Entities.")
f"{len(to_be_updated)} Entities.")
if commit_changes:
self.execute_parent_updates_in_list(to_be_updated, securityMode=self.securityMode,
run_id=self.run_id, unique_names=unique_names)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment