mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Functionality added and all tests working.
Update correct use of permissions form.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user