Make json error on empty response more specific

This commit is contained in:
sursh
2013-04-08 13:00:27 -03:00
parent fa9234da05
commit 511cc4c034
+2 -1
View File
@@ -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