projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfa59c2
)
Make json error message more specific
author
Sasha Laundy
<sasha.laundy@gmail.com>
Mon, 8 Apr 2013 17:03:13 +0000
(13:03 -0400)
committer
Sasha Laundy
<sasha.laundy@gmail.com>
Mon, 8 Apr 2013 17:03:13 +0000
(13:03 -0400)
docs/user/quickstart.rst
patch
|
blob
|
history
diff --git
a/docs/user/quickstart.rst
b/docs/user/quickstart.rst
index d046640e31027d287ea6a3aef14d77e2cd680d34..cb4ef57988f615946e9993946b5aee47fb5e4dea 100644
(file)
--- a/
docs/user/quickstart.rst
+++ b/
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': '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``