From 95f3873270438bb93319a4317fba406dc4b8e6b4 Mon Sep 17 00:00:00 2001 From: Lars Falk-Petersen Date: Fri, 11 Oct 2024 11:36:35 +0200 Subject: [PATCH] Add siteurl for better error message. --- sedr/edreq11.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sedr/edreq11.py b/sedr/edreq11.py index 27654d5..26339f2 100644 --- a/sedr/edreq11.py +++ b/sedr/edreq11.py @@ -14,7 +14,7 @@ ] -def requirementA2_2_A5(jsondata: str) -> tuple[bool, str]: +def requirementA2_2_A5(jsondata: str, siteurl="") -> tuple[bool, str]: """Check if the conformance page contains the required EDR classes. jsondata should be the "conformsTo"-part of the conformance page. @@ -24,7 +24,7 @@ def requirementA2_2_A5(jsondata: str) -> tuple[bool, str]: if url not in jsondata: return ( False, - f"Conformance page /conformance does not contain the core edr class {url}. See <{spec_url}> for more info.", + f"Conformance page <{siteurl}conformance> does not contain the core edr class {url}. See <{spec_url}> for more info.", ) return True, ""