diff --git a/blockstack_cli_0.14.1/blockstore_client/utils.py b/blockstack_cli_0.14.1/blockstore_client/utils.py
index <HASH>..<HASH> 100644
--- a/blockstack_cli_0.14.1/blockstore_client/utils.py
+++ b/blockstack_cli_0.14.1/blockstore_client/utils.py
@@ -23,21 +23,28 @@
 
 import json
 
+from config import log
+
 
 def pretty_dump(data):
     """ format data
     """
-    try:
-        # Netstring server responds with [{data}]
-        data = data[0]
-    except:
-        pass
+
+    if type(data) is list:
+
+        if len(data) == 0:
+            # we got an empty array
+            data = {}
+        else:
+            # Netstring server responds with [{data}]
+            data = data[0]
 
     if type(data) is not dict:
         try:
             data = json.loads(data)
         except Exception as e:
-            log.debug("ERROR in pretty print: %s" % e)
+            # data is not valid json, convert to json
+            data = {'result': data}
 
     return json.dumps(data, sort_keys=True, indent=4, separators=(',', ': '))
fix for cases where we get a) empty array, b) invalid json as data, resolves #<I>