Skip to content

Commit

Permalink
Add additional Errno::ENETUNREACH rescue
Browse files Browse the repository at this point in the history
  • Loading branch information
walter committed Apr 18, 2016
1 parent 0a67c70 commit 4f5c219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/geo_data_from_request.rb
Expand Up @@ -11,7 +11,7 @@ def geo_data
redis.set(ip, Marshal.dump(@geo_data)) unless existing_value

@geo_data
rescue Errno::ECONNREFUSED, Errno::ECONNRESET
rescue Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::ENETUNREACH
nil
end

Expand Down

0 comments on commit 4f5c219

Please sign in to comment.