From 57aa92b5c4df873adb5f2fa838d5d6d3b408aafa Mon Sep 17 00:00:00 2001 From: Nishiki Liu Date: Mon, 17 Jun 2024 21:03:23 -0700 Subject: [PATCH] Expand `rescue` to cover any error --- app/controllers/bulk_deletion_requests_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/bulk_deletion_requests_controller.rb b/app/controllers/bulk_deletion_requests_controller.rb index e7384f5..a9fcfab 100644 --- a/app/controllers/bulk_deletion_requests_controller.rb +++ b/app/controllers/bulk_deletion_requests_controller.rb @@ -15,7 +15,7 @@ def create begin @bulk_deletion_request.deliver_emails - rescue Net::SMTPAuthenticationError + rescue flash.now[:alert] = t(".smtp_authentication_alert") render(:new, status: :unprocessable_entity) && return end