lib/fozzie/classes.rb in fozzie-0.0.3 vs lib/fozzie/classes.rb in fozzie-0.0.4

- old
+ new

@@ -11,13 +11,15 @@ super host, port end def time_to_do(stat, sample_rate=1, &block); time_for(stat, sample_rate, &block); end def time_for(stat, sample_rate=1, &block) + res = nil begin - time(stat, sample_rate, &block) - rescue => exc - yield block + res = time(stat, sample_rate, &block) + rescue SocketError => exc + puts exc.message + res end end def committed; commit; end def commit \ No newline at end of file