mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 16:02:46 +08:00
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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user