View Single Post
Old 09-27-2011, 11:31 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,520
Karma: 8065528
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
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?"
chaley is offline   Reply With Quote