]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Print before exiting
authorDavanum Srinivas <dims@linux.vnet.ibm.com>
Fri, 26 Jul 2013 11:53:54 +0000 (07:53 -0400)
committerDavanum Srinivas <dims@linux.vnet.ibm.com>
Fri, 26 Jul 2013 20:30:50 +0000 (16:30 -0400)
Remove "break" as it is unreachable. Move the logging statement
to before we exit as well.

Change-Id: I8a5c3e8fd2cf0532e15cc7eb9920a2ca7428b28f

heat/common/wsgi.py

index 7282ca6527a3c228559d9cf1e8753265ca1a83ba..f108fe68e5b8db6b7e4fa67bf292ecf8975c0cb8 100644 (file)
@@ -211,7 +211,6 @@ class Server(object):
                 if err.errno not in (errno.EINTR, errno.ECHILD):
                     raise
             except KeyboardInterrupt:
-                sys.exit(1)
                 self.logger.info(_('Caught keyboard interrupt. Exiting.'))
                 break
         eventlet.greenio.shutdown_safe(self.sock)