Skip to content

Commit

Permalink
Prevent log file warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Nov 12, 2023
1 parent c7dedc2 commit 91618db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions boblibrary/module-functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ if not bobmods.lib.module then
end

function bobmods.lib.module.exclude_productivity_module(module_name)
if type(module_name) == "string" and data.raw.module[module_name] then
bobmods.lib.module.excluded_prod_modules[module_name] = true
if type(module_name) == "string" then
if data.raw.module[module_name] then
bobmods.lib.module.excluded_prod_modules[module_name] = true
end
else
log(debug.traceback())
end
Expand Down

0 comments on commit 91618db

Please sign in to comment.