Fallback to Flask routing when not a ws request #11

This commit is contained in:
2016-02-03 22:03:41 -05:00
parent ed60987664
commit b159ecbeb3
+1 -1
View File
@@ -38,7 +38,7 @@ class SocketMiddleware(object):
environment = environ['wsgi.websocket']
handler(environment, **values)
return []
except NotFound:
except (NotFound, KeyError):
return self.app(environ, start_response)