From 257a9dd06ac0788ce0c149625c7711d5d0f71d97 Mon Sep 17 00:00:00 2001 From: mkaay Date: Tue, 30 Mar 2010 14:40:46 +0200 Subject: config set fix --- module/XMLConfigParser.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/XMLConfigParser.py b/module/XMLConfigParser.py index 6396122f4..ea664e221 100644 --- a/module/XMLConfigParser.py +++ b/module/XMLConfigParser.py @@ -180,9 +180,12 @@ class XMLConfigParser(): return "str" def getInputValues(self, section, option): - if not self.data[section]["options"][option]["input"]: + try: + if not self.data[section]["options"][option]["input"]: + return [] + return self.data[section]["options"][option]["input"].split(";") + except: return [] - return self.data[section]["options"][option]["input"].split(";") def getDisplayName(self, section, option=None): try: -- cgit v1.2.3