From: Vsevolod Stakhov Date: Wed, 6 Nov 2024 13:56:56 +0000 (+0000) Subject: [Minor] Fix optionality X-Git-Tag: 3.11.0~34^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cca898932e253ec26d1022178b7394348286121;p=thirdparty%2Frspamd.git [Minor] Fix optionality --- diff --git a/conf/modules.conf b/conf/modules.conf index f99eab8dcb..51f1f420e2 100644 --- a/conf/modules.conf +++ b/conf/modules.conf @@ -15,4 +15,4 @@ # See https://rspamd.com/doc/tutorials/writing_rules.html for details .include(glob=true) "${CONFDIR}/modules.d/*.conf" -.include(glob=true) "${CONFDIR}/modules.local.d/*.conf" \ No newline at end of file +.include(try=true, glob=true) "${CONFDIR}/modules.local.d/*.conf" \ No newline at end of file diff --git a/rules/rspamd.lua b/rules/rspamd.lua index 3b80a035a6..e41a946cb8 100644 --- a/rules/rspamd.lua +++ b/rules/rspamd.lua @@ -51,7 +51,7 @@ else end end -for local_lua in rspamd_util.glob(local_conf .. '/lua.local.d/*.lua') do +for _, local_lua in ipairs(rspamd_util.glob(local_conf .. '/lua.local.d/*.lua') or {}) do dofile(local_lua) end