From 1388232e38a4ef0f438eef2ea3bae32daeda6dba Mon Sep 17 00:00:00 2001 From: Randall Leeds Date: Sun, 13 Mar 2016 14:36:42 -0700 Subject: [PATCH] [gevent] remove obsolete exception clauses in run Since the changes from #1126, errors are not raised into the main loop during a non-graceful shutdown. Therefore, these exception clauses shouldn't be needed anymore. --- gunicorn/workers/ggevent.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/gunicorn/workers/ggevent.py b/gunicorn/workers/ggevent.py index 8cde27468..9e51944f8 100644 --- a/gunicorn/workers/ggevent.py +++ b/gunicorn/workers/ggevent.py @@ -114,20 +114,9 @@ def run(self): server.start() servers.append(server) - try: - while self.alive: - self.notify() - gevent.sleep(1.0) - - except KeyboardInterrupt: - pass - except: - for server in servers: - try: - server.stop() - except: - pass - raise + while self.alive: + self.notify() + gevent.sleep(1.0) try: # Stop accepting requests