Browse Source

Do not raise error if the 'after' author word is not set

pull/209/head
Louis 8 years ago
parent
commit
7cc7d3bbdb
  1. 2
      patacrep/authors.py

2
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)

Loading…
Cancel
Save