Commit e5fc75be authored by Gregory Ashton's avatar Gregory Ashton

Add information to debug info

parent b07fe9a4
......@@ -39,7 +39,7 @@ class Result(dict):
def __init__(self, dictionary=None):
if type(dictionary) is dict:
for key in dictionary:
setattr(self, key, self._decode_object(dictionary[key]))
setattr(self, key, self._decode_object(dictionary[key], key))
def __getattr__(self, name):
try:
......@@ -62,7 +62,7 @@ class Result(dict):
else:
return ''
def _decode_object(self, item):
def _decode_object(self, item, name=None):
""" When reading in data, ensure all bytes are decoded to strings """
if type(item) == pd.DataFrame:
return item
......@@ -76,7 +76,7 @@ class Result(dict):
except (AttributeError, TypeError):
pass
logging.debug("Unable to decode item")
logging.debug("Unable to decode item {}".format(name))
return item
def get_result_dictionary(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment