From ff4c129939601203591b26a80398d0315465dfc1 Mon Sep 17 00:00:00 2001 From: Luqman Amjad Date: Tue, 21 Jun 2011 23:43:52 +0100 Subject: [PATCH] Rescue 404 when fetching zone --- lib/fog/dns/models/dnsmadeeasy/zones.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/dns/models/dnsmadeeasy/zones.rb b/lib/fog/dns/models/dnsmadeeasy/zones.rb index f56468d57..ba16e582c 100644 --- a/lib/fog/dns/models/dnsmadeeasy/zones.rb +++ b/lib/fog/dns/models/dnsmadeeasy/zones.rb @@ -19,7 +19,7 @@ module Fog data = connection.get_domain(zone_id).body data.merge!(:id => data['name']) new(data) - rescue Excon::Errors::NotFound + rescue Fog::Service::NotFound nil end