summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-03-30 14:40:46 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-03-30 14:40:46 +0200
commit257a9dd06ac0788ce0c149625c7711d5d0f71d97 (patch)
tree6fef99bbfb9b4b6111d2aa671a9f74c4acf2158c /module
parentfixes #87 (diff)
downloadpyload-257a9dd06ac0788ce0c149625c7711d5d0f71d97.tar.xz
config set fix
Diffstat (limited to 'module')
-rw-r--r--module/XMLConfigParser.py7
1 files 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: