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
This commit is contained in:
kgriffs 2014-01-21 10:27:16 -06:00
parent b14c7e07b7
commit 0d7da730e6

View File

@ -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