chore: Remove sentry exceptions for the message status failed errors (#8285)

- Remove sending exceptions to Sentry after capturing the message failed errors.
This commit is contained in:
Muhsin Keloth
2023-11-03 00:30:22 +05:30
committed by GitHub
parent 4999f7ed23
commit 16c36a78f0
2 changed files with 3 additions and 6 deletions

View File

@@ -9,7 +9,6 @@ class Twilio::SendOnTwilioService < Base::SendOnChannelService
begin
twilio_message = channel.send_message(**message_params)
rescue Twilio::REST::TwilioError, Twilio::REST::RestError => e
ChatwootExceptionTracker.new(e, user: message.sender, account: message.account).capture_exception
message.update!(status: :failed, external_error: e.message)
end
message.update!(source_id: twilio_message.sid) if twilio_message