Permalink
Browse files

Fixed a slug problem

  • Loading branch information...
1 parent 7d022b2 commit 02fbe432b072a6560a5eae83dcaa4fe5d30d5481 @mitsuhiko mitsuhiko committed Jul 15, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 sync-librelist.py
View
@@ -109,7 +109,8 @@ def generate_slug(self, mail):
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

0 comments on commit 02fbe43

Please sign in to comment.