From f53ad0fe71d31cfad3bc3837cbc728028502df86 Mon Sep 17 00:00:00 2001 From: evilhero Date: Tue, 22 Jan 2019 22:08:40 -0500 Subject: [PATCH] FIX:(#2173) Post-Processing via ComicRN/CDH would fail due to invalid reference --- mylar/PostProcessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mylar/PostProcessor.py b/mylar/PostProcessor.py index 0e727b5e..a63ddeea 100755 --- a/mylar/PostProcessor.py +++ b/mylar/PostProcessor.py @@ -2347,7 +2347,7 @@ class PostProcessor(object): nfilename = nfilename.replace(' ', mylar.CONFIG.REPLACE_CHAR) nfilename = re.sub('[\,\:\?\"\']', '', nfilename) nfilename = re.sub('[\/\*]', '-', nfilename) - if ml['ForcedMatch'] is True: + if ml is not None and ml['ForcedMatch'] is True: xyb = nfilename.find('[__') if xyb != -1: yyb = nfilename.find('__]', xyb)