Skip to content

include reason in ResourceNotFound - #40

Merged
nickpell merged 2 commits into
jsonobjectfrom
np/missing
Jul 6, 2018
Merged

include reason in ResourceNotFound#40
nickpell merged 2 commits into
jsonobjectfrom
np/missing

Conversation

@nickpell

@nickpell nickpell commented Jul 6, 2018

Copy link
Copy Markdown
Contributor

@nickpell
nickpell requested review from emord and orangejenny July 6, 2018 17:59
Comment thread couchdbkit/client.py
except HTTPError as e:
if e.response.status_code == 404:
raise ResourceNotFound
raise ResourceNotFound(json.loads(e.response.content)['reason'])

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.

Is this always specified? Should it use .get ?

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.

I think it should be, but I'll be on the lookout for any errors

@nickpell
nickpell merged commit 4c40bdc into jsonobject Jul 6, 2018
@nickpell
nickpell deleted the np/missing branch July 6, 2018 18:16
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