Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Make json error message more specific

  • Loading branch information...
commit 8ebeb3dc3fa82bf9d670af2b54a23d9a0b161e35 1 parent dfa59c2
@sursh authored
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.