Skip to content

Commit

Permalink
fix: Handle all types of errors in API channel webhooks (#8307)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhsin-k committed Nov 7, 2023
1 parent 677888b commit 3eb1d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webhooks/trigger.rb
Expand Up @@ -13,7 +13,7 @@ def self.execute(url, payload, webhook_type)

def execute
perform_request
rescue RestClient::Exceptions::Timeout, RestClient::ExceptionWithResponse => e
rescue StandardError => e
handle_error(e)
Rails.logger.warn "Exception: Invalid webhook URL #{@url} : #{e.message}"
end
Expand Down

0 comments on commit 3eb1d49

Please sign in to comment.