From 0d7da730e6f8cbe83e0eacb3fcc17d6896ec5405 Mon Sep 17 00:00:00 2001 From: kgriffs Date: Tue, 21 Jan 2014 10:27:16 -0600 Subject: [PATCH] fix: ConnectionError no longer takes positional arguments When storage.errors was modified to DRY up message formatting, one line in the mongodb driver wasn't updated accordingly. This patch updates that code so that the gate will stop breaking when it tests against the mongodb driver. Change-Id: I9552b2dfc2fa767815d6278eb3bc918099603c63 --- marconi/queues/storage/mongodb/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/marconi/queues/storage/mongodb/utils.py b/marconi/queues/storage/mongodb/utils.py index 5065bfc69..858b22370 100644 --- a/marconi/queues/storage/mongodb/utils.py +++ b/marconi/queues/storage/mongodb/utils.py @@ -249,10 +249,8 @@ def raises_conn_error(func): try: return func(*args, **kwargs) except errors.ConnectionFailure as ex: - # NOTE(flaper87): Raise the error LOG.exception(ex) - msg = u'ConnectionFailure caught' - raise storage_errors.ConnectionError(msg) + raise storage_errors.ConnectionError() return wrapper