master
Denis Knauf 2010-04-14 11:34:27 +02:00
parent 55c7c8637b
commit aeaccab933
1 changed files with 1 additions and 5 deletions

View File

@ -82,13 +82,9 @@ module SBDB
txn = opts[:txn] # First is the global txn, second only for open.
begin
@db.open txn && txn.bdb_object, file, opts[:name], opts[:type], opts[:flags] || 0, opts[:mode] || 0
rescue Exception => exc
rescue Object => exc
close
exc.backtrace.unshift "Trying to open #{open[:env] && "in #{open[:env]].home} "}database #{file} #{opts[:name]}"
raise exc
rescue
close
raise Object
end
end