mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
remove the generic 400 error page handler
it just shows a h1, so isn't helpful for people. We can re-use the 500 error page, which includes instructings "Try again later" and instructions on what to do next (check the status page, email notify support). this required refactoring to ensure we can show the 500 error page while still returning the required status code
This commit is contained in:
@@ -234,7 +234,6 @@ def uploaded_letter_preview(service_id, file_id):
|
||||
@main.route("/services/<uuid:service_id>/preview-letter-image/<uuid:file_id>")
|
||||
@user_has_permissions('send_messages')
|
||||
def view_letter_upload_as_preview(service_id, file_id):
|
||||
|
||||
try:
|
||||
page = int(request.args.get('page'))
|
||||
except ValueError:
|
||||
|
||||
Reference in New Issue
Block a user