mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Replace pcall with require to catch errors
This commit is contained in:
parent
acdc67e28a
commit
606de5197b
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
-- ########################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue