aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py2
1 files changed, 2 insertions, 0 deletions
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