MCPcopy Create free account
hub / github.com/CoderLuii/HolyClaude / validate_notify_urls

Function validate_notify_urls

scripts/notify.py:112–126  ·  view source on GitHub ↗
(urls)

Source from the content-addressed store, hash-verified

110
111
112def validate_notify_urls(urls):
113 try:
114 import apprise
115 except Exception as exc:
116 return [(url, False, f"apprise import failed: {type(exc).__name__}") for url in urls]
117
118 results = []
119 for url in urls:
120 try:
121 ap = apprise.Apprise()
122 accepted = bool(ap.add(url))
123 results.append((url, accepted, "accepted" if accepted else "rejected"))
124 except Exception as exc:
125 results.append((url, False, type(exc).__name__))
126 return results
127
128
129def write_debug(stream, flag_enabled, urls, results):

Callers 1

run_dry_runFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected