From 92922b143ac41001df27f25c8d3f447f1177a3fc Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Tue, 10 Oct 2023 19:21:00 -0400 Subject: [PATCH] ignore security warning --- weaver/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaver/notify.py b/weaver/notify.py index 401619410..31857ea1b 100644 --- a/weaver/notify.py +++ b/weaver/notify.py @@ -47,7 +47,7 @@ def resolve_email_template(job, settings): if not os.path.isdir(template_dir): LOGGER.warning("No default email template directory configured. Using default template.") template_file = os.path.join(WEAVER_MODULE_DIR, "wps_restapi/templates/notification_email_example.mako") - template = Template(filename=template_file) + template = Template(filename=template_file) # nosec: B702 else: default_setting = "weaver.wps_email_notify_template_default" default_default = "default.mako"