From: root Date: Tue, 17 Apr 2012 15:38:48 +0000 (+0200) Subject: Handle exception on Ctrl-C X-Git-Tag: 2014.1~1979 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f94547743e8b28203e34dd7c3534473ebb1babde;p=openstack-build%2Fheat-build.git Handle exception on Ctrl-C Signed-off-by: Zane Bitter --- diff --git a/heat/rpc/amqp.py b/heat/rpc/amqp.py index c00849a3..8585b591 100644 --- a/heat/rpc/amqp.py +++ b/heat/rpc/amqp.py @@ -60,7 +60,11 @@ class Pool(pools.Pool): def empty(self): while self.free_items: - self.get().close() + item = self.get() + try: + item.close() + except Exception: + pass class ConnectionContext(rpc_common.Connection):