pallets-eco / flask-session

Server side session extension for Flask
https://flask-session.readthedocs.io
BSD 3-Clause "New" or "Revised" License
501 stars 239 forks source link

Handling exceptions #45

Closed pors closed 7 years ago

pors commented 8 years ago

Hi!

How could one handle exceptions with flask-session? When using SESSION_TYPE='redis' and redis is not available for some reason I can't find a way to catch the redis.exceptions.ConnectionError exception.

Any ideas how to do this?

Thanks for this awesome extension!

fengsp commented 7 years ago

That should be handled by the Flask, try http://flask.pocoo.org/docs/0.11/errorhandling/