Make json error on empty response more specific
authorsursh <sasha.laundy@gmail.com>
Mon, 8 Apr 2013 16:00:27 +0000 (13:00 -0300)
committersursh <sasha.laundy@gmail.com>
Mon, 8 Apr 2013 16:00:27 +0000 (13:00 -0300)
docs/user/quickstart.rst

index 8ec9030c3b2a98299d299c51bd5944a7aa0d3091..7264fd5677b88cab4365741f26595027392bb2bb 100644 (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