StopIteration shouldn't be catched at this level.

fix #790
This commit is contained in:
benoitc 2014-06-14 21:46:35 +02:00
parent 68cd2b92c8
commit f41f86c3da

View File

@ -114,6 +114,8 @@ class AsyncWorker(base.Worker):
respiter.close()
if resp.should_close():
raise StopIteration()
except StopIteration:
raise
except Exception:
if resp and resp.headers_sent:
# If the requests have already been sent, we should close the