commit | 375d09c5e07ffddaea9a4cd507bacc04b025ff67 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Wed May 27 13:03:26 2015 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Wed May 27 13:03:26 2015 -0700 |
tree | ddf3ea369346c2e642a92f1049434d37691b4098 | |
parent | 2184868dd23a88b9334fc3ee0c37bbc2ffa9aaca [diff] | |
parent | c153c2b95af48247d3e81733becb3cec0791f148 [diff] |
Merge branch 'master' of github.com:open-cloud/xos
diff --git a/xos/core/xoslib/methods/hpcview.py b/xos/core/xoslib/methods/hpcview.py index e4b39d7..0645405 100644 --- a/xos/core/xoslib/methods/hpcview.py +++ b/xos/core/xoslib/methods/hpcview.py
@@ -48,7 +48,10 @@ if not d: return "null" - d = json.loads(d) + try: + d = json.loads(d) + except: + return "error decoding json '%s'" % str(d) status = d.get("status", "null") if status!="success":