lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

error handling raises exceptions #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Receiving an exception from CouchDB 0.7.0a575 causes an exception like this:

  File "/home/jpa/Projects/couchdb/couchdb-python/couchdb/client.py", line
517, in _request
    error = data.get('error', {}).get('reason', data)
AttributeError: 'unicode' object has no attribute 'get'

The attached patch fixes this issue. 

Original issue reported on code.google.com by juri.pak...@gmail.com on 13 Nov 2007 at 12:20

Attachments:

GoogleCodeExporter commented 8 years ago
This was fixed in r45.

Original comment by cmlenz on 15 Mar 2008 at 10:37