spoletto/billr — Issue #14: Remove try-catch wrappers around mongo functions
Author: spoletto
Created: 2011-11-19 20:39:18+00:00
State: open

Completely not necessary. Flask will catch exceptions and return a 500 response. Custom error pages can be rendered as follows:

@app.errorhandler(500)
def internal_server_error(e):
return render_template('500.html'), 500