Newbie question about Python + CouchDB

James Mills prologic at shortcircuit.net.au
Mon Sep 13 19:33:15 EDT 2010


On Tue, Sep 14, 2010 at 8:59 AM, C3 <modulus10 at yahoo.com> wrote:

> 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")


An appropriate exception should by thrown when it "crashes".

Use an appropriate try/except block to "catch" the exception(s).

cheers
James



-- 
-- James Mills
--
-- "Problems are solved by method"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100914/3776706c/attachment.html>


More information about the Python-list mailing list