Small memory allocation fixes (#2625)

This commit is contained in:
dgtlmoon
2024-09-11 14:51:32 +02:00
committed by GitHub
parent e16814e40b
commit 7f2fa20318
7 changed files with 103 additions and 91 deletions

View File

@@ -221,7 +221,8 @@ class ValidateAppRiseServers(object):
def __call__(self, form, field):
import apprise
apobj = apprise.Apprise()
# so that the custom endpoints are registered
from changedetectionio.apprise import apprise_custom_api_call_wrapper
for server_url in field.data:
if not apobj.add(server_url):
message = field.gettext('\'%s\' is not a valid AppRise URL.' % (server_url))