Cron: Fixe Fehler bei handle_exception() (was für eine Ironie!)

This commit is contained in:
Andreas Bielawski 2016-08-18 13:13:37 +02:00
parent 7f3b4e7671
commit 5d8c86115b

View File

@ -210,7 +210,7 @@ function bot:run(config)
if v.cron then -- Call each plugin's cron function, if it has one. if v.cron then -- Call each plugin's cron function, if it has one.
local result, err = pcall(function() v.cron(self, config) end) local result, err = pcall(function() v.cron(self, config) end)
if not result then if not result then
utilities.handle_exception(self, err, 'CRON: ' .. i, config) utilities.handle_exception(self, err, 'CRON: ' .. n, config)
end end
end end
end end