Skip to content
Snippets Groups Projects
Commit c0033d36 authored by Auke Klazema's avatar Auke Klazema
Browse files

SW-609: Change nonexisting exception into the correct exception in messagebus.py

parent 33b4b7f0
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ class FromBus(object):
logger.info('[FromBus] Ignoring duplicate reconnect option in connection init')
self.connection = proton.utils.BlockingConnection(self.broker, **self.broker_options)
logger.debug("[FromBus] Connected to broker: %s", self.broker)
except proton.utils.ConnectionException as ex:
except proton.ConnectionException as ex:
logger.exception('[FromBus] Initialization failed')
raise MessageBusError('[FromBus] Initialization failed (%s)' % ex)
......@@ -362,7 +362,7 @@ class ToBus(object):
logger.info('[ToBus] Ignoring duplicate reconnect option in connection init')
self.connection = proton.utils.BlockingConnection(self.broker, **self.broker_options)
logger.debug("[ToBus] Connected to broker: %s", self.broker)
except proton.utils.ConnectionException as ex:
except proton.ConnectionException as ex:
logger.exception('[ToBus] Initialization failed')
raise MessageBusError('[ToBus] Initialization failed (%s)' % ex)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment