Skip to content
Snippets Groups Projects
Verified Commit 43651150 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: More logging.

parent c8242836
Branches
Tags
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!171sav/spss converter
...@@ -252,6 +252,8 @@ startswith: bool, optional ...@@ -252,6 +252,8 @@ startswith: bool, optional
if pname == "name" or pname == "is_referenced_by": if pname == "name" or pname == "is_referenced_by":
continue continue
if record.get_property(prop.name) is None: if record.get_property(prop.name) is None:
logger.error(f"Record with missing identifying property:\n{record}\n"
f"This property is missing: {prop.name}\n")
raise RuntimeError("Missing identifying Property") raise RuntimeError("Missing identifying Property")
pval = record.get_property(prop.name).value pval = record.get_property(prop.name).value
if not isinstance(prop.value, list): if not isinstance(prop.value, list):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment