From 6eaddc5ef6950a7ac77e4aeb14166068620b1c8b Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 22 Jan 2024 16:19:02 +0100 Subject: [PATCH] rescue StandardError, not Exception in reality, it's most probably RestClient::Exception, but let's play safe --- lib/tasks/hybrid_cloud.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/hybrid_cloud.rake b/lib/tasks/hybrid_cloud.rake index 4f39b213..af3d8df1 100644 --- a/lib/tasks/hybrid_cloud.rake +++ b/lib/tasks/hybrid_cloud.rake @@ -57,7 +57,7 @@ namespace :rh_cloud do |args| payload: payload.to_json ) logger.debug(response) - rescue Exception => ex + rescue StandardError => ex logger.error(ex) end end