nil check in ensure
This commit is contained in:
parent
0914bd87e9
commit
55824a4823
@ -102,7 +102,7 @@ module XGen
|
||||
raise "error retrieving database info" unless db.ok?(doc)
|
||||
doc
|
||||
ensure
|
||||
db.close
|
||||
db.close if db
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user