diff --git a/swift/common/db.py b/swift/common/db.py index 5a34c154a9..6d50516076 100644 --- a/swift/common/db.py +++ b/swift/common/db.py @@ -294,7 +294,7 @@ class DatabaseBroker(object): elif 'file is encrypted or is not a database' in str(exc_value): exc_hint = 'corrupted' else: - raise exc_type(*exc_value.args), None, exc_traceback + raise exc_type, exc_value, exc_traceback prefix_path = os.path.dirname(self.db_dir) partition_path = os.path.dirname(prefix_path) dbs_path = os.path.dirname(partition_path)