Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a slug problem

  • Loading branch information...
commit 02fbe432b072a6560a5eae83dcaa4fe5d30d5481 1 parent 7d022b2
@mitsuhiko authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  sync-librelist.py
View
3  sync-librelist.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.