Newbie question about Python + CouchDB
C3
modulus10 at yahoo.com
Mon Sep 13 18:59:30 EDT 2010
Total newbie here - have a quick question
I have a script that takes data in a flat text file, breaks it up and builds a CouchDB with all my data - however during the loop in which the data is loaded into couchdb - I sometimes get crashes becuase of a duplicate Document ID (which in my case is the serial number of a product)
i was wondering if it is possible to;
1. capture the HTTP status code for each post
2. write logic around that code (such as "skip post if error code was a 409")
thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100913/698ddbec/attachment.html>
More information about the Python-list
mailing list