fix: Handle all types of errors in API channel webhooks (#8307)

This commit is contained in:
Muhsin Keloth 2023-11-07 12:54:49 +05:30 committed by GitHub
parent 677888bcde
commit 3eb1d49577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ class Webhooks::Trigger
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