Merge branch 'try_num_3' into 'master'

try a third time to fix crash

See merge request medlabboulder/modpol!8
This commit is contained in:
Nathan Schneider 2021-03-10 06:45:27 +00:00
commit 27ad3dd4a5

View File

@ -234,7 +234,12 @@ modpol.add_org = function(org_name, members, parent_id, properties)
end
end
local msg = "New org: " .. org_name .. " ["..org_id.."], parent = ".. parent_org_id or ""..", members = "..
local parent_id_str = "none"
if parent_org_id then
parent_id_str = tostring(parent_org_id)
end
local msg = "New org: " .. org_name .. " ["..org_id.."], parent = ".. parent_id_str ..", members = "..
" (" .. table.concat (members, ", ") .. ")"
modpol.record (org_id, msg, 'org_init')