script/couchdir in jchris-couchrest-0.7.99 vs script/couchdir in jchris-couchrest-0.8.0
- old
+ new
@@ -38,10 +38,14 @@
}
end
puts attachments.keys.inspect
-doc = @db.get(dirname) rescue nil
+begin
+ doc = @db.get(dirname)
+rescue RestClient::Request::RequestFailed
+ doc = nil
+end
# puts "get: #{doc.inspect}"
if doc
doc["_attachments"] = attachments
\ No newline at end of file