diff options
author | dpetrov67 <dpetrov67@gmail.com> | 2023-02-14 11:53:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 11:53:40 -0500 |
commit | 4028247ac6bba30731efc1ee346c6752ae6eb3c3 (patch) | |
tree | 256b8b58c1fb1d6fbceee91874c305646ef92a26 | |
parent | 7797592bedd63ce3c2ffecb944695ed63c837dd7 (diff) | |
download | rspamd-4028247ac6bba30731efc1ee346c6752ae6eb3c3.tar.gz rspamd-4028247ac6bba30731efc1ee346c6752ae6eb3c3.zip |
Fix pcall() argument in rspamd.lua
-rw-r--r-- | rules/rspamd.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/rspamd.lua b/rules/rspamd.lua index 98fc5e09e..5d93dec00 100644 --- a/rules/rspamd.lua +++ b/rules/rspamd.lua @@ -57,7 +57,7 @@ local rmaps = rspamd_config:get_all_opt("lua_maps") if rmaps and type(rmaps) == 'table' then local rspamd_logger = require "rspamd_logger" for k,v in pairs(rmaps) do - local status,map_or_err = pcall(rspamd_config:add_map(v)) + local status,map_or_err = pcall(function () return rspamd_config:add_map(v) end) if not status then rspamd_logger.errx(rspamd_config, "cannot add map %s: %s", k, map_or_err) |