Skip to content

Commit

Permalink
[bug] swisscom#13 - Timeout::Error does not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
NetForces committed Feb 12, 2018
1 parent 9032f8b commit 3c1caab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netsnmp/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def handle_retries
retries = @retries
begin
yield
rescue Timeout::Error => e
rescue Timeout => e
raise e if retries.zero?
retries -= 1
retry
Expand Down
1 change: 1 addition & 0 deletions lib/netsnmp/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ module NETSNMP
Error = Class.new(StandardError)
ConnectionFailed = Class.new(Error)
AuthenticationFailed = Class.new(Error)
Timeout = Class.new(Error)
end

0 comments on commit 3c1caab

Please sign in to comment.