CC-3475: Pypo does not handles the case of RabbitMQ being restarted
- added the other exception as well
This commit is contained in:
parent
f0be7cc995
commit
92f0f11047
|
@ -99,7 +99,7 @@ class PypoMessageHandler(Thread):
|
|||
self.handle_message(message.payload)
|
||||
# ACK the message to take it off the queue
|
||||
message.ack()
|
||||
except IOError, e:
|
||||
except (IOError, AttributeError), e:
|
||||
import traceback
|
||||
top = traceback.format_exc()
|
||||
self.logger.error('Exception: %s', e)
|
||||
|
|
Loading…
Reference in New Issue