Merge "Don't trigger error_callback for known exc"
This commit is contained in:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user