Skip to content
Snippets Groups Projects
Commit 4c70a0a6 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

ENH(validator): use NotImplementedError instead of RuntimeError

parent 7ca13cf8
No related branches found
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!201Validator that checks created records using a json schema
Pipeline #58465 passed
......@@ -149,7 +149,7 @@ def validate(records: list[db.Record], schemas: dict[str, dict]) -> list[tuple]:
retval = []
for r in records:
if len(r.parents) != 1:
raise RuntimeError(
raise NotImplementedError(
"Schema validation is only supported if records have exactly one parent.")
parname = r.parents[0].name
if parname not in schemas:
......
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