mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-14 10:58:58 -04:00
Don't serve 500s on demand
This commit is contained in:
@@ -20,6 +20,8 @@ def index():
|
||||
|
||||
@main.route('/error/<int:status_code>')
|
||||
def error(status_code):
|
||||
if status_code >= 500:
|
||||
abort(404)
|
||||
abort(status_code)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user