Skip to content

Commit

Permalink
Add siteurl for better error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ways committed Oct 11, 2024
1 parent e7fa3c5 commit 95f3873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sedr/edreq11.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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, ""
Expand Down

0 comments on commit 95f3873

Please sign in to comment.