Skip to content

keep same behavior as restkit implementation - #44

Merged
nickpell merged 3 commits into
jsonobjectfrom
np/maintain-behavior
Jul 12, 2018
Merged

keep same behavior as restkit implementation#44
nickpell merged 3 commits into
jsonobjectfrom
np/maintain-behavior

Conversation

@nickpell

Copy link
Copy Markdown
Contributor

No description provided.

@nickpell
nickpell requested review from emord and pr33thi July 12, 2018 17:43
@nickpell nickpell mentioned this pull request Jul 12, 2018
Comment thread couchdbkit/client.py
couch_doc['_rev'] = self.get_rev(doc1)
try:
couch_doc['_rev'] = self.get_rev(doc1)
except ResourceNotFound:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If get_rev is using requests I think it would return HttpError right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It catches a 404 error and raises a ResourceNotFound error instead

@nickpell
nickpell merged commit 010df95 into jsonobject Jul 12, 2018
@nickpell
nickpell deleted the np/maintain-behavior branch July 12, 2018 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants