Skip to content

Commit

Permalink
appease the cops
Browse files Browse the repository at this point in the history
  • Loading branch information
majormoses committed Dec 5, 2018
1 parent c9f08fd commit 73480b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bin/metrics-mysql-select-count.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,11 @@ def run

output config[:name], count
ok

rescue Mysql::Error => e
errstr = "Error code: #{e.errno} Error message: #{e.error}"
critical "#{errstr} SQLSTATE: #{e.sqlstate}" if e.respond_to?('sqlstate')

rescue StandardError => e
critical "unhandled exception: #{e}"

ensure
db.close if db
end
Expand Down

0 comments on commit 73480b0

Please sign in to comment.