Skip to content

Commit

Permalink
fix: rescue Timout errors
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Apr 26, 2011
1 parent c5c9831 commit 3649fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nntp_client.rb
Expand Up @@ -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

Expand Down

0 comments on commit 3649fa5

Please sign in to comment.