summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--swift/common/db.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/swift/common/db.py b/swift/common/db.py
index 91cb91976..ce4def9d0 100644
--- a/swift/common/db.py
+++ b/swift/common/db.py
@@ -333,7 +333,9 @@ class DatabaseBroker(object):
exc_hint = 'malformed'
elif 'malformed database schema' in str(exc_value):
exc_hint = 'malformed'
- elif 'file is encrypted or is not a database' in str(exc_value):
+ elif ' is not a database' in str(exc_value):
+ # older versions said 'file is not a database'
+ # now 'file is encrypted or is not a database'
exc_hint = 'corrupted'
elif 'disk I/O error' in str(exc_value):
exc_hint = 'disk error while accessing'