Permalink
Browse files

Make json error on empty response more specific

  • Loading branch information...
1 parent fa9234d commit 511cc4c03449d58b42d59349363c766c60d48451 @sursh committed Apr 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 docs/user/quickstart.rst
View
@@ -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

0 comments on commit 511cc4c

Please sign in to comment.