lib/xapian_db/config.rb in xapian_db-1.0 vs lib/xapian_db/config.rb in xapian_db-1.1

- old
+ new

@@ -65,13 +65,12 @@ end if path.to_sym == :memory @_database = XapianDb.create_db else - if File.exist?(path) + begin @_database = XapianDb.open_db :path => path - else - # Database does not exist; create it + rescue IOError @_database = XapianDb.create_db :path => path end end end \ No newline at end of file