From 33a550f893affb2abe8ea1fc393786b6aeb2304c Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 8 Jan 2020 12:45:22 -0600 Subject: Made change that I think should fix the unicode stuff once and for all --- wqflask/base/trait.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wqflask/base') diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index 7f60a809..63d07bf7 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -427,6 +427,8 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False): # logger.debug("HOLDER:", holder) # logger.debug("HOLDER2:", holder.decode(encoding='latin1')) # holder = unicode(trait_info[i], "utf-8", "ignore") + if isinstance(trait_info[i], basestring): + holder = holder.encode('latin1') setattr(trait, field, holder) trait.display_name = trait.name -- cgit v1.2.3