[google] Excon::Errors::NotFound never reaches the models

Use Fog::Errors::NotFound as raised by build_excon_response
This commit is contained in:
Carlos Sanchez 2013-12-24 09:55:53 +01:00
parent e33ad62655
commit 5ed244e9a5
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ module Fog
def get(identity, zone_name = nil)
data = connection.get_machine_type(identity, zone_name).body
new(data)
rescue Excon::Errors::NotFound
rescue Fog::Errors::NotFound
nil
end

View File

@ -40,7 +40,7 @@ module Fog
else
new(response.body)
end
rescue Excon::Errors::NotFound
rescue Fog::Errors::NotFound
nil
end

View File

@ -17,7 +17,7 @@ module Fog
def get(identity)
data = service.get_zone(identity).body
new(data)
rescue Excon::Errors::NotFound
rescue Fog::Errors::NotFound
nil
end