FIX: Catch all kinds of exceptions when processing email
This commit is contained in:
parent
3b368a48d1
commit
8d5750d90a
|
@ -73,7 +73,7 @@ module Email
|
||||||
@incoming_email = create_incoming_email
|
@incoming_email = create_incoming_email
|
||||||
process_internal
|
process_internal
|
||||||
raise BouncedEmailError if is_bounce?
|
raise BouncedEmailError if is_bounce?
|
||||||
rescue => e
|
rescue Exception => e
|
||||||
error = e.to_s
|
error = e.to_s
|
||||||
error = e.class.name if error.blank?
|
error = e.class.name if error.blank?
|
||||||
@incoming_email.update_columns(error: error) if @incoming_email
|
@incoming_email.update_columns(error: error) if @incoming_email
|
||||||
|
|
Loading…
Reference in New Issue