From fcf212d715e2bc6cc44b344198c21e522a06ed8a Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 12 Oct 2016 21:45:27 +0200 Subject: [PATCH] harderner config importer --- src/fenrir/core/settingsManager.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fenrir/core/settingsManager.py b/src/fenrir/core/settingsManager.py index 2966e49a..0d1ad1d9 100644 --- a/src/fenrir/core/settingsManager.py +++ b/src/fenrir/core/settingsManager.py @@ -108,8 +108,12 @@ class settingsManager(): if not ":===:" in line: continue sepLine = line.split(':===:') - if len(sepLine) != 2: + if len(sepLine) == 1: sepLine.append('') + elif len(sepLine) < 1: + continue + elif len(sepLine) > 2: + sepLine[1] = ':===:' self.env['punctuation'][currDictName][sepLine[0]] = sepLine[1] self.env['runtime']['debug'].writeDebugOut("Punctuation: " + currDictName + '.' + str(sepLine[0]) + ' :' + sepLine[1] ,debug.debugLevel.INFO) dictConfig.close()