fix: add debug print for pa11y JSON output type in check_wcag_unique.py
This commit is contained in:
committed by
Mark Eaton (aider)
parent
a622bf203f
commit
e0098733fd
@@ -40,6 +40,7 @@ def run_pa11y(url: str) -> List[dict]:
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
print(type(result.stdout))
|
||||||
return json.loads(result.stdout)
|
return json.loads(result.stdout)
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
print(f"[WARN] Could not parse pa11y JSON output for {url}", file=sys.stderr)
|
print(f"[WARN] Could not parse pa11y JSON output for {url}", file=sys.stderr)
|
||||||
|
|||||||
Reference in New Issue
Block a user