data_marp: bail if database not open (nw)

master
cracyc 2017-09-27 16:01:36 -05:00
parent 1f3a452cd0
commit 89a97d353c
1 changed files with 4 additions and 2 deletions

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