From: sursh Date: Mon, 8 Apr 2013 16:00:27 +0000 (-0300) Subject: Make json error on empty response more specific X-Git-Tag: v1.2.1~21^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=511cc4c03449d58b42d59349363c766c60d48451;p=services%2Fpython-requests.git Make json error on empty response more specific --- diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index 8ec9030..7264fd5 100644 --- 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