From 281008b1ce3f92507622d856e0a310690ea37ab3 Mon Sep 17 00:00:00 2001 From: Josh Kearney Date: Fri, 19 Nov 2010 16:01:55 -0600 Subject: Added some comments --- nova/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova') diff --git a/nova/rpc.py b/nova/rpc.py index 0c79c7f76..d9097afaa 100644 --- a/nova/rpc.py +++ b/nova/rpc.py @@ -100,12 +100,12 @@ class Consumer(messaging.Consumer): """Wraps the parent fetch with some logic for failed connections""" try: super(Consumer, self).fetch(no_ack, auto_ack, enable_callbacks) - except: + except: # Catching all because carrot sucks try: self.connection = Connection.recreate() self.backend = self.connection.create_backend() self.declare() - except: + except: # Catching all because carrot sucks logging.warning("AMQP server on %s:%d is unreachable. " \ "Trying again in 30 seconds." % ( FLAGS.rabbit_host, -- cgit