bin/check-beanstalk-statistic.rb in sensu-plugins-beanstalk-1.2.0 vs bin/check-beanstalk-statistic.rb in sensu-plugins-beanstalk-2.0.0
- old
+ new
@@ -63,10 +63,10 @@
def run
begin
beanstalk = Beanstalk::Connection.new(
"#{config[:host]}:#{config[:port]}"
)
- rescue => e
+ rescue StandardError => e
critical "Failed to connect: (#{e})"
end
if config[:tube]
begin