Add a missed raise statement

Change-Id: I8cec4aaae56dac32b98910f0a620020996ae2814
This commit is contained in:
Victor Sergeyev 2015-07-02 13:56:29 +03:00
parent 2ec7ed602f
commit de6d4f11af

@ -1047,8 +1047,8 @@ class Connection(object):
"""
if not exchange.passive:
RuntimeError("_publish_and_retry_on_missing_exchange() must be "
"called with an passive exchange.")
raise RuntimeError("_publish_and_retry_on_missing_exchange() must "
"be called with an passive exchange.")
# TODO(sileht): use @retrying
# NOTE(sileht): no need to wait the application expect a response