Replace pcall with require to catch errors

This commit is contained in:
emanuele-f 2018-12-11 18:56:46 +01:00
parent acdc67e28a
commit 606de5197b
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ local callback_utils = require "callback_utils"
if (ntop.isPro()) then
package.path = dirs.installdir .. "/pro/scripts/callbacks/interface/?.lua;" .. package.path
pcall(require, 'hourly')
require('hourly')
end
-- ########################################################