From 7cc7d3bbdb40e3ad691dabd6e35c7ad9859c5809 Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 24 Feb 2016 22:57:09 +0100 Subject: [PATCH] Do not raise error if the 'after' author word is not set --- patacrep/authors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patacrep/authors.py b/patacrep/authors.py index c8b65361..11d1df60 100644 --- a/patacrep/authors.py +++ b/patacrep/authors.py @@ -17,7 +17,7 @@ def compile_authwords(authwords): 'ignore': authwords.get('ignore', []), 'after': [ re.compile(RE_AFTER.format(word), re.LOCALE) - for word in authwords['after'] + for word in authwords.get('after') ], 'separators': [ re.compile(RE_SEPARATOR.format(word), re.LOCALE)