bin/check-s3-bucket.rb in sensu-plugins-aws-10.1.1 vs bin/check-s3-bucket.rb in sensu-plugins-aws-10.1.2

- old
+ new

@@ -77,10 +77,10 @@ begin s3.head_bucket(bucket: config[:bucket_name]) ok "Bucket #{config[:bucket_name]} found" rescue Aws::S3::Errors::NotFound => _ critical "Bucket #{config[:bucket_name]} not found" - rescue => e + rescue StandardError => e critical "Bucket #{config[:bucket_name]} - #{e.message}" end end end