diff --git a/backend/configs/brencher2.py b/backend/configs/brencher2.py index 29d5641..7d002fa 100644 --- a/backend/configs/brencher2.py +++ b/backend/configs/brencher2.py @@ -19,10 +19,10 @@ def checkPingF(obj: Any): if "brencher" not in obj or "brencher2" not in obj: raise ValueError("Dictionary must contain both 'brencher' and 'brencher2' keys") for v in obj['brencher'][1]: - if "Exception" in json.dumps(v): + if ('name' not in v or v['name'] != "UrlCheck") and "Exception" in json.dumps(v): raise Exception(f"brencher check failed for: {v}") for v in obj['brencher2'][1]: - if "Exception" in json.dumps(v): + if ('name' not in v or v['name'] != "UrlCheck") and "Exception" in json.dumps(v): raise Exception(f"brencher2 check failed for: {v}")