diff --git a/lshash/lshash.py b/lshash/lshash.py index 5c895a6..ee538ac 100644 --- a/lshash/lshash.py +++ b/lshash/lshash.py @@ -151,7 +151,7 @@ def _as_np_array(self, json_or_tuple): # JSON-serialized in the case of Redis try: # Return the point stored as list, without the extra data - tuples = json.loads(json_or_tuple)[0] + tuples = json.loads(json_or_tuple) except TypeError: print("The value stored is not JSON-serilizable") raise