Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit aabe4aa

Browse files
committed
Making sure all paths return something
Callers may rely on being able to iterate over the result of this function.
1 parent 6dc512a commit aabe4aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flask_sockets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def __call__(self, environ, start_response):
3737
environment = environ['wsgi.websocket']
3838

3939
handler(environment)
40+
return []
4041
else:
4142
return self.app(environ, start_response)
4243

@@ -64,4 +65,4 @@ def add_url_rule(self, rule, _, f, **options):
6465

6566
# CLI sugar.
6667
if 'Worker' in locals():
67-
worker = Worker
68+
worker = Worker

0 commit comments

Comments
 (0)