From 3649fa55a807ef005cfabaebaf4f73f9838f6f97 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Tue, 26 Apr 2011 21:53:54 +0200 Subject: [PATCH] fix: rescue Timout errors --- lib/nntp_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nntp_client.rb b/lib/nntp_client.rb index fbd9537..9f689fd 100644 --- a/lib/nntp_client.rb +++ b/lib/nntp_client.rb @@ -28,7 +28,7 @@ def to_s def initialize(host='localhost', port=119, user=nil, secret=nil, method=nil) @nntp = Net::NNTP.start(host, port, user, secret, method) - rescue SystemCallError => e + rescue SystemCallError, Timeout::Error => e raise NetworkFailureException.new(e.message) end