This repository was archived by the owner on Apr 29, 2022. It is now read-only.
This repository was archived by the owner on Apr 29, 2022. It is now read-only.
KeyError is silenced if thrown from inner handler #37
Open
Description
If a KeyError is thrown in the handler, it will be caught and no log output will be produced. It bit me and it took some time to figure out what was happening.
Proposed fix: try-except-KeyError only the environ
lookup.
https://github.com/kennethreitz/flask-sockets/blob/master/flask_sockets.py#L47
except (NotFound, KeyError):
return self.wsgi_app(environ, start_response)
Metadata
Metadata
Assignees
Labels
No labels