CC-3475: Pypo does not handles the case of RabbitMQ being restarted

- added the other exception as well
This commit is contained in:
James 2012-04-11 16:12:06 -04:00
parent f0be7cc995
commit 92f0f11047
1 changed files with 1 additions and 1 deletions

View File

@ -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)