FIX: Catch all kinds of exceptions when processing email

FIX: Catch all kinds of exceptions when processing email

diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb
index 9fab909..60eacb1 100644
--- a/lib/email/receiver.rb
+++ b/lib/email/receiver.rb
@@ -73,7 +73,7 @@ module Email
           @incoming_email = create_incoming_email
           process_internal
           raise BouncedEmailError if is_bounce?
-        rescue => e
+        rescue Exception => e
           error = e.to_s
           error = e.class.name if error.blank?
           @incoming_email.update_columns(error: error) if @incoming_email

GitHub sha: 8d5750d9

1 Like