Commit 7fcd06a7 authored by Denis Bilenko's avatar Denis Bilenko

gevent.wsgi: do not print tracebacks when the handler raises GreenletExit

parent 41da0994
......@@ -7,6 +7,7 @@ socket = __import__('socket')
import gevent
from gevent.http import HTTPServer
from gevent.hub import GreenletExit
__all__ = ['WSGIServer',
......@@ -109,6 +110,8 @@ class WSGIHandler(object):
finally:
if hasattr(result, 'close'):
result.close()
except GreenletExit:
raise
except:
traceback.print_exc()
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment