|
|
@ -308,8 +308,12 @@ class ValidateAppRiseServers(object):
|
|
|
|
# so that the custom endpoints are registered
|
|
|
|
# so that the custom endpoints are registered
|
|
|
|
from changedetectionio.apprise_plugin import apprise_custom_api_call_wrapper
|
|
|
|
from changedetectionio.apprise_plugin import apprise_custom_api_call_wrapper
|
|
|
|
for server_url in field.data:
|
|
|
|
for server_url in field.data:
|
|
|
|
if not apobj.add(server_url):
|
|
|
|
url = server_url.strip()
|
|
|
|
message = field.gettext('\'%s\' is not a valid AppRise URL.' % (server_url))
|
|
|
|
if url.startswith("#"):
|
|
|
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not apobj.add(url):
|
|
|
|
|
|
|
|
message = field.gettext('\'%s\' is not a valid AppRise URL.' % (url))
|
|
|
|
raise ValidationError(message)
|
|
|
|
raise ValidationError(message)
|
|
|
|
|
|
|
|
|
|
|
|
class ValidateJinja2Template(object):
|
|
|
|
class ValidateJinja2Template(object):
|
|
|
|