Skip to content

Commit

Permalink
rescue StandardError, not Exception
Browse files Browse the repository at this point in the history
in reality, it's most probably RestClient::Exception, but let's play
safe
  • Loading branch information
evgeni committed Jan 22, 2024
1 parent a7883a7 commit 6eaddc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/hybrid_cloud.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6eaddc5

Please sign in to comment.