[99] Remove empty tags produced by munging all non-ascii tags

I thought this way of filtering was easier to read than filter(None, tags)
This commit is contained in:
Tom Mortimer-Jones 2014-08-07 17:05:16 +01:00
parent 13dbb1eea4
commit 65cfade420
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class HarvesterBase(SingletonPlugin):
if self.config and self.config.get('clean_tags', False):
tags = package_dict.get('tags', [])
tags = [munge_tag(t) for t in tags]
tags = [munge_tag(t) for t in tags if munge_tag(t) != '']
tags = list(set(tags))
package_dict['tags'] = tags