Merge "Don't trigger error_callback for known exc"

This commit is contained in:
Jenkins 2015-12-10 06:44:32 +00:00 committed by Gerrit Code Review
commit 28e9004dc1

@ -703,6 +703,10 @@ class Connection(object):
'tries: %(err_str)s') % info
LOG.error(msg)
raise exceptions.MessageDeliveryFailure(msg)
except rpc_amqp.AMQPDestinationNotFound:
# NOTE(sileht): we must reraise this without
# trigger error_callback
raise
except Exception as exc:
error_callback and error_callback(exc)
raise