Quote:
Originally Posted by kovidgoyal
I'm going to need more context. Are you saying that match.group('authors') is raising an AttributeError?
|
No. It returns None, which is passed to authors_to_string, which raises an attribute error when it attempts to do None.replace(...)
Specifically, if (?P<author>... is in the pattern, and if that part of the pattern matches nothing, then match.group... returns None.
What I don't understand is "what changed?"