Fix unittest error caused by to_str change

This commit is contained in:
Griatch 2019-01-19 18:34:48 +01:00
parent abfa47315e
commit 33b37b5df2
2 changed files with 25 additions and 19 deletions

View file

@ -368,7 +368,7 @@ class TagHandler(object):
tags = sorted(self._cache.values())
if return_key_and_category:
# return tuple (key, category)
return [(to_str(tag.db_key), to_str(tag.db_category)) for tag in tags]
return [(to_str(tag.db_key), tag.db_category) for tag in tags]
elif return_objs:
return tags
else: