diff --git a/lib/sbdb/db.rb b/lib/sbdb/db.rb index 1b0262e..2da1a94 100644 --- a/lib/sbdb/db.rb +++ b/lib/sbdb/db.rb @@ -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