summaryrefslogtreecommitdiffstats
path: root/openstack/common/rpc/common.py
diff options
context:
space:
mode:
authorSergey Lukjanov <slukjanov@mirantis.com>2013-05-30 08:32:42 +0400
committerSergey Lukjanov <slukjanov@mirantis.com>2013-05-30 09:00:57 +0400
commit484a1df32d5854312ef31c5b488fc07fff8428c4 (patch)
treee8ac54c6ab7f1aeac8ca23522683d6ebc5b3ec14 /openstack/common/rpc/common.py
parent35660dac73f9f7428f9c441583464b5942ca6827 (diff)
downloadoslo-484a1df32d5854312ef31c5b488fc07fff8428c4.tar.gz
oslo-484a1df32d5854312ef31c5b488fc07fff8428c4.tar.xz
oslo-484a1df32d5854312ef31c5b488fc07fff8428c4.zip
Enable hacking H403 test
H403 multi line docstring end on new line Change-Id: I33249651026b54ef346214965e909835288bb14e
Diffstat (limited to 'openstack/common/rpc/common.py')
-rw-r--r--openstack/common/rpc/common.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/openstack/common/rpc/common.py b/openstack/common/rpc/common.py
index 5a7e525..28dcacd 100644
--- a/openstack/common/rpc/common.py
+++ b/openstack/common/rpc/common.py
@@ -417,7 +417,8 @@ class ClientException(Exception):
"""This encapsulates some actual exception that is expected to be
hit by an RPC proxy object. Merely instantiating it records the
current exception information, which will be passed back to the
- RPC client without exceptional logging."""
+ RPC client without exceptional logging.
+ """
def __init__(self):
self._exc_info = sys.exc_info()
@@ -438,7 +439,8 @@ def client_exceptions(*exceptions):
of expected exceptions that the RPC layer should not consider fatal,
and not log as if they were generated in a real error scenario. Note
that this will cause listed exceptions to be wrapped in a
- ClientException, which is used internally by the RPC layer."""
+ ClientException, which is used internally by the RPC layer.
+ """
def outer(func):
def inner(*args, **kwargs):
return catch_client_exception(exceptions, func, *args, **kwargs)