Functionality added and all tests working.

Update correct use of permissions form.
This commit is contained in:
Nicholas Staples
2016-03-23 10:46:31 +00:00
parent 0435015211
commit f3689cc113
8 changed files with 115 additions and 8 deletions

View File

@@ -200,6 +200,12 @@ def register_errorhandlers(application):
def handle_no_permissions(error):
return _error_response(401)
@application.errorhandler(500)
def handle_exception(error):
if current_app.config.get('DEBUG', None):
raise error
return _error_response(500)
@application.errorhandler(Exception)
def handle_bad_request(error):
# We want the Flask in browser stacktrace