Cron: Fixe Fehler bei handle_exception() (was für eine Ironie!)
This commit is contained in:
parent
7f3b4e7671
commit
5d8c86115b
@ -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
|
||||||
|
Reference in New Issue
Block a user