From 511cc4c03449d58b42d59349363c766c60d48451 Mon Sep 17 00:00:00 2001 From: sursh Date: Mon, 8 Apr 2013 13:00:27 -0300 Subject: [PATCH] Make json error on empty response more specific --- docs/user/quickstart.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.7.4