From 4c70a0a62b2580bd38a4d848b8ff417566fcc717 Mon Sep 17 00:00:00 2001
From: Alexander Schlemmer <a.schlemmer@indiscale.com>
Date: Mon, 2 Dec 2024 10:47:17 +0100
Subject: [PATCH] ENH(validator): use NotImplementedError instead of
 RuntimeError

---
 src/caoscrawler/validator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/caoscrawler/validator.py b/src/caoscrawler/validator.py
index 4ed639df..33e29b02 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:
-- 
GitLab