From 53f502687be1d2e4983c2e6cb1fbf643176af4a1 Mon Sep 17 00:00:00 2001 From: David Hadas Date: Thu, 18 Jul 2013 00:00:46 +0300 Subject: [PATCH] Fix the way possibly_quarantine reraises an exception Fixes Bug #1202386 Change-Id: I8585d8442c7ccf538b819b036192b28c1f13847b --- swift/common/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/common/db.py b/swift/common/db.py index da38599aea..c7ffb25f12 100644 --- a/swift/common/db.py +++ b/swift/common/db.py @@ -292,7 +292,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)