Skip to content

Commit a84031e

Browse files
committed
Prevent issues with specific modules from breaking the entire addon
1 parent c742f5c commit a84031e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function Main:InitConfig()
140140
local module = module;
141141
local copy = CopyTable(defaultModuleOptions);
142142
self.db.moduleDb[moduleName] = self.db.moduleDb[moduleName] or {};
143-
local moduleOptions = module.GetOptions and module:GetOptions(copy, self.db.moduleDb[moduleName]) or copy;
143+
local moduleOptions = module.GetOptions and securecall(module.GetOptions, module, copy, self.db.moduleDb[moduleName]) or copy;
144144
moduleOptions.order = increment();
145145
self.options.args.modules.args[moduleName] = moduleOptions;
146146
end

0 commit comments

Comments
 (0)