From 5261decb024c92d42e701719f2f7050e4d28b7e0 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 8 Oct 2015 18:18:14 -0500 Subject: [PATCH] Don't errorif authorUrl list shorter than author list, use no_author_link. For test1.com. --- fanficfare/story.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fanficfare/story.py b/fanficfare/story.py index 80714dd0..8539939b 100644 --- a/fanficfare/story.py +++ b/fanficfare/story.py @@ -682,7 +682,10 @@ class Story(Configurable): if self.isList('author'): # more than one author, assume multiple authorUrl too. htmllist=[] for i, v in enumerate(self.getList('author')): - aurl = self.getList('authorUrl')[i] + if len(self.getList('authorUrl')) <= i: + aurl = "no_author_link" + else: + aurl = self.getList('authorUrl')[i] auth = v # make sure doreplacements & removeallentities are honored. if doreplacements: