1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Catch new exception that is being thrown.

This commit is contained in:
Rupak Ganguly 2011-10-24 13:35:11 -04:00
parent 102646581c
commit 6c0c274490

View file

@ -31,7 +31,7 @@ module Fog
connection.cdn.post_container(key, 'X-CDN-Enabled' => 'False')
end
true
rescue Excon::Errors::NotFound
rescue Excon::Errors::NotFound, Fog::Storage::HP::NotFound
false
end