diff --git a/lib/td_tip/models/response.rb b/lib/td_tip/models/response.rb index 62eab2b..dbcb4e1 100644 --- a/lib/td_tip/models/response.rb +++ b/lib/td_tip/models/response.rb @@ -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 diff --git a/lib/td_tip/version.rb b/lib/td_tip/version.rb index d6edd8c..cb87eb9 100644 --- a/lib/td_tip/version.rb +++ b/lib/td_tip/version.rb @@ -1,4 +1,4 @@ # Main gem's module module TdTip - VERSION = '0.1.6' + VERSION = '0.1.7' end