From 02fbe432b072a6560a5eae83dcaa4fe5d30d5481 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 15 Jul 2010 20:21:20 +0200 Subject: [PATCH] Fixed a slug problem --- sync-librelist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sync-librelist.py b/sync-librelist.py index 0f8b9dab..7742f23c 100644 --- a/sync-librelist.py +++ b/sync-librelist.py @@ -109,7 +109,8 @@ class Tree(object): rv = u'%s/%s' % (date, '-'.join(x for x in _punctuation_re.split( unicodedata.normalize('NFKC', unicode(mail['subject'])) - .encode('ascii', 'ignore')) if x).lower()) + .encode('ascii', 'ignore')) if x).lower() + or 'untitled') while self.slug_used(rv): rv = increment_string(rv) return rv