summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/rbotdb6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/rbotdb b/bin/rbotdb
index 8fdf7e53..c537187a 100755
--- a/bin/rbotdb
+++ b/bin/rbotdb
@@ -128,7 +128,11 @@ class BackupRegistry
def read_bdb(file)
data = {}
- db = BDB::Hash.open(file.abs, nil, 'r')
+ begin
+ db = BDB::Hash.open(file.abs, nil, 'r')
+ rescue BDB::Fatal
+ db = BDB::Btree.open(file.abs, nil, 'r')
+ end
db.each do |key, value|
data[key] = value
end