FIX: Catch all kinds of exceptions when processing email

This commit is contained in:
Daniel Waterworth 2020-07-09 13:39:01 +01:00
parent 3b368a48d1
commit 8d5750d90a

View File

@ -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