Skip to content

Commit

Permalink
handle Net::ReadTimeout exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiesiek Spyra committed Dec 1, 2015
1 parent 5c24c57 commit dc8fefb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/td_tip/models/response.rb
Expand Up @@ -54,7 +54,7 @@ def calculate_request

def with_error_handling
yield
rescue HTTParty::Error, JSON::ParserError => e
rescue HTTParty::Error, Net::ReadTimeout, JSON::ParserError => e
{ error: e.message }
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/td_tip/version.rb
@@ -1,4 +1,4 @@
# Main gem's module
module TdTip
VERSION = '0.1.6'
VERSION = '0.1.7'
end

0 comments on commit dc8fefb

Please sign in to comment.