Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

error handling raises exceptions #3

@djc

Description

@djc

From juri.pak...@gmail.com on November 13, 2007 13:20:21

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.

Attachment: couchdb.patch

Original issue: http://code.google.com/p/couchdb-python/issues/detail?id=2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions