Permalink
Browse files

Fixes for unused variable warning

  • Loading branch information...
1 parent 326f5e4 commit 52689baddd5c142e8c6ebb1cb3a7437f0debd21c @itsderek23 itsderek23 committed Feb 18, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 ntp_time/ntp_time.rb
View
@@ -23,10 +23,8 @@ def build_report
:transmit_timestamp => response.transmit_timestamp.to_f,
:offset => offset.to_f
)
-
- rescue Exception => e
- error("Unable to connect to NTP server (#{host})")
- return
+ rescue SocketError => e
+ error("Unable to connect to NTP server (#{host})", e.message)
end
end
end

0 comments on commit 52689ba

Please sign in to comment.