Skip to content

Commit

Permalink
Expand rescue to cover any error
Browse files Browse the repository at this point in the history
  • Loading branch information
nshki committed Jun 18, 2024
1 parent 5d536c5 commit 57aa92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/bulk_deletion_requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57aa92b

Please sign in to comment.