From d6d08345b7ac110fd805fb056b93c6adf7d5dc16 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 30 May 2015 09:30:41 -0500 Subject: [PATCH] Fix add_genre_when_multi_category when genre is empty. --- fanficfare/story.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fanficfare/story.py b/fanficfare/story.py index bae5c15d..75953fb9 100644 --- a/fanficfare/story.py +++ b/fanficfare/story.py @@ -765,6 +765,8 @@ class Story(Configurable): doreplacements=doreplacements)] else: retlist = self.getMetadataRaw(listname) + if retlist is None: + retlist = [] if retlist: if doreplacements: