cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [3/5] git commit: requester: catch and print json decoding errors
Date Tue, 19 Aug 2014 12:36:57 GMT
requester: catch and print json decoding errors

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/commit/a49aab7a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/tree/a49aab7a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/diff/a49aab7a

Branch: refs/heads/master
Commit: a49aab7a95fa6059de7ceeaff6325d42781d8f41
Parents: 8cc5cbd
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Tue Aug 19 14:34:55 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Tue Aug 19 14:34:55 2014 +0200

----------------------------------------------------------------------
 cloudmonkey/requester.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-cloudmonkey/blob/a49aab7a/cloudmonkey/requester.py
----------------------------------------------------------------------
diff --git a/cloudmonkey/requester.py b/cloudmonkey/requester.py
index 073190c..7073e79 100644
--- a/cloudmonkey/requester.py
+++ b/cloudmonkey/requester.py
@@ -217,7 +217,9 @@ def monkeyrequest(command, args, isasync, asyncblock, logger, url,
             response = json.loads(str(response))
         except ValueError, e:
             logger_debug(logger, "Error processing json: %s" % e)
-
+            print "Error processing json:", str(e)
+            response = None
+            error = e
         return response
 
     response = process_json(response)


Mime
View raw message