diff --git a/src/caoscrawler/validator.py b/src/caoscrawler/validator.py index 4ed639dff33e46fc01443716b6b0a3498d2fd598..33e29b02db429e3382248bbd80d2d00cd7b07c6b 100644 --- a/src/caoscrawler/validator.py +++ b/src/caoscrawler/validator.py @@ -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: