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:
fa9234d
)
Make json error on empty response more specific
author
sursh
<sasha.laundy@gmail.com>
Mon, 8 Apr 2013 16:00:27 +0000
(13:00 -0300)
committer
sursh
<sasha.laundy@gmail.com>
Mon, 8 Apr 2013 16:00:27 +0000
(13:00 -0300)
docs/user/quickstart.rst
patch
|
blob
|
history
diff --git
a/docs/user/quickstart.rst
b/docs/user/quickstart.rst
index 8ec9030c3b2a98299d299c51bd5944a7aa0d3091..7264fd5677b88cab4365741f26595027392bb2bb 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.
+In case the JSON decoding fails, ``r.json`` raises an exception: `ValueError:
+No JSON object could be decoded`
Raw Response Content