force in_tree to string when tree loading fails
@@ -211,11 +211,11 @@ class TreeAnc(object):
if fmt in ['nexus', 'nex']:
self._tree=Phylo.read(in_tree, 'nexus')
else:
- self.logger('TreeAnc: could not load tree, format needs to be nexus or newick! input was '+in_tree,1)
+ self.logger('TreeAnc: could not load tree, format needs to be nexus or newick! input was '+str(in_tree),1)
self._tree = None
return
else:
- self.logger('TreeAnc: could not load tree! input was '+in_tree,1)
+ self.logger('TreeAnc: could not load tree! input was '+str(in_tree),1)
self._tree = None
return
