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

STY: Formatting

parent d7555ec9
Branches
Tags
2 merge requests!107Release v0.11.0,!103xlsx -> json conversion
Pipeline #50738 passed
......@@ -148,6 +148,8 @@ out: dict
col_paths.append(col.path)
for path in parents.values():
subschema = xlsx_utils.get_subschema(path, self._schema)
# Unfortunately, there are a lot of special cases to handle here.
if subschema.get("type") == "array":
subschema = subschema["items"]
if "enum" in subschema: # Was handled in parent level already
......@@ -282,9 +284,9 @@ the values given in the ``foreign`` specification.
current_object = cand
break
else:
message = "Cannot find an element which matches these foreign definitions:\n\n"
message = f"Cannot find an element at {parent_path} for these foreign defs:\n"
for name, value in group.definitions:
message += f"{name}: {value}\n"
message += f" {name}: {value}\n"
print(message, file=sys.stderr)
error = ForeignError(definitions=group.definitions, message=message)
raise error
......
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment