Skip to content

Commit

Permalink
Make json error message more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
sursh committed Apr 8, 2013
1 parent dfa59c2 commit 8ebeb3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/user/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ There's also a builtin JSON decoder, in case you're dealing with JSON data::
>>> r.json()
[{u'repository': {u'open_issues': 0, u'url': 'https://github.com/...

In case the JSON decoding fails, ``r.json`` raises an exception: ``ValueError:
In case the JSON decoding fails, ``r.json`` raises an exception. For example, if
the response gets a 401 (Unauthorized), attempting ``r.json`` raises ``ValueError:
No JSON object could be decoded``


Expand Down

0 comments on commit 8ebeb3d

Please sign in to comment.