Skip to content
Browse files

Make json error message more specific

  • Loading branch information...
1 parent dfa59c2 commit 8ebeb3dc3fa82bf9d670af2b54a23d9a0b161e35 @sursh committed Apr 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 docs/user/quickstart.rst
3 docs/user/quickstart.rst
@@ -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': '
-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``

0 comments on commit 8ebeb3d

Please sign in to comment.
Something went wrong with that request. Please try again.