From af3649320eeeb489f6f279b54e411a26856b4100 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 14 Apr 2016 12:07:58 +0200 Subject: [PATCH] bug fix for empty keyword in index generation --- patacrep/authors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patacrep/authors.py b/patacrep/authors.py index dadcc909..03221ebc 100644 --- a/patacrep/authors.py +++ b/patacrep/authors.py @@ -17,11 +17,11 @@ def compile_authwords(authwords): 'ignore': authwords.get('ignore', []), 'after': [ re.compile(RE_AFTER.format(word)) - for word in authwords.get('after') + for word in authwords.get('after', []) ], 'separators': [ re.compile(RE_SEPARATOR.format(word)) - for word in ([" %s" % word for word in authwords['separators']] + [',', ';']) + for word in ([" %s" % word for word in authwords.get('separators', [])] + [',', ';']) ], }