heroku-python / flask-sockets

[DEPRECATED] Alternative: https://github.com/miguelgrinberg/flask-sock
MIT License
1.74k stars 164 forks source link

Added exception handling to __call__ of SocketMiddleware #10

Closed teechap closed 8 years ago

teechap commented 10 years ago

In keeping with Python's EAFP philosophy, it might be nice to explicitly handle an exception when path isn't in the URL map. It could also make sense to alert the user of the exception to avoid failing silently when the "if" statement is false. What do you think?