Removed another utf-8 related bug

This commit is contained in:
Skami18 2011-08-16 18:43:51 +02:00
commit 26eecf082a

View file

@ -219,7 +219,7 @@ class ArticlesGenerator(Generator):
if os.path.dirname(f) == self.path: if os.path.dirname(f) == self.path:
category = self.settings['DEFAULT_CATEGORY'] category = self.settings['DEFAULT_CATEGORY']
else: else:
category = os.path.basename(os.path.dirname(f)) category = os.path.basename(os.path.dirname(f)).decode('utf-8')
if category != '': if category != '':
metadata['category'] = unicode(category) metadata['category'] = unicode(category)