diff options
| author | 2010-03-30 14:40:46 +0200 | |
|---|---|---|
| committer | 2010-03-30 14:40:46 +0200 | |
| commit | 257a9dd06ac0788ce0c149625c7711d5d0f71d97 (patch) | |
| tree | 6fef99bbfb9b4b6111d2aa671a9f74c4acf2158c | |
| parent | fixes #87 (diff) | |
| download | pyload-257a9dd06ac0788ce0c149625c7711d5d0f71d97.tar.xz | |
config set fix
| -rw-r--r-- | module/XMLConfigParser.py | 7 | 
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: | 
