diff options
author | mkaay <mkaay@mkaay.de> | 2009-12-26 21:17:45 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-12-26 21:17:45 +0100 |
commit | 15841561a8e5650d88e4af477b8e4f8f96a81253 (patch) | |
tree | d1cbee2d936ed90fdf99df90b1bcec9b31e58257 /module/XMLConfigParser.py | |
parent | fixed view update (diff) | |
download | pyload-15841561a8e5650d88e4af477b8e4f8f96a81253.tar.xz |
pluginconfig now in xml
Diffstat (limited to 'module/XMLConfigParser.py')
-rw-r--r-- | module/XMLConfigParser.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/XMLConfigParser.py b/module/XMLConfigParser.py index 51741fdfd..eedc00b67 100644 --- a/module/XMLConfigParser.py +++ b/module/XMLConfigParser.py @@ -59,7 +59,10 @@ class XMLConfigParser(): config[section] = {} for opt in node.childNodes: if opt.nodeType == opt.ELEMENT_NODE: - config[section][opt.tagName] = format(opt.firstChild.data) + try: + config[section][opt.tagName] = format(opt.firstChild.data) + except: + config[section][opt.tagName] = "" self.config = config def get(self, section, option, default=None): |