data_marp: bail if database not open (nw)

This commit is contained in:
cracyc 2017-09-27 16:01:36 -05:00
parent 1f3a452cd0
commit 89a97d353c

View file

@ -111,10 +111,12 @@ local function init()
db:exec("END TRANSACTION")
end
init()
if db then
init()
end
function dat.check(set, softlist)
if softlist or not ver then
if softlist or not ver or not db then
return nil
end
info = nil