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":