Skip to content

Commit

Permalink
Fixing how Sentry is notified when an external bot can't be called
Browse files Browse the repository at this point in the history
Just fixing a syntax error.

Fixes CV2-3626.
  • Loading branch information
caiosba authored Sep 16, 2023
1 parent 13afc05 commit 49cbc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/bot_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def call(data)
begin
response = http.request(request)
rescue StandardError => e
CheckSentry.notify(ExternalBotRequestError.new('Could not send request to external bot'), { error: e, bot_id: self.id })
CheckSentry.notify(ExternalBotRequestError.new('Could not send request to external bot'), error: e, bot_id: self.id)
return nil
end
# Log data with team_id only to avoid Encoding::CompatibilityError
Expand Down

0 comments on commit 49cbc02

Please sign in to comment.