lib/fog/aliyun/models/storage/files.rb in fog-aliyun-0.3.1 vs lib/fog/aliyun/models/storage/files.rb in fog-aliyun-0.3.2
- old
+ new
@@ -66,10 +66,10 @@
end
begin
data = service.get_object(object)
rescue StandardError => error
case error.response.body
- when /<Code>NoSuchKey<\/Code>/
+ when %r{<Code>NoSuchKey</Code>}
nil
else
raise(error)
end
end