Avoid iterating in uninitialized result
This commit is contained in:
parent
eeb48fc72e
commit
e4f42b8ce3
1 changed files with 2 additions and 0 deletions
|
@ -262,6 +262,8 @@ class WebSocketHandler(WSGIHandler):
|
|||
|
||||
def process_result(self):
|
||||
if "wsgi.websocket" in self.environ:
|
||||
if self.result is None:
|
||||
return
|
||||
# Flushing result is required for werkzeug compatibility
|
||||
for elem in self.result:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue