summaryrefslogtreecommitdiffstats
path: root/module/XMLConfigParser.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-26 21:17:45 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-26 21:17:45 +0100
commit15841561a8e5650d88e4af477b8e4f8f96a81253 (patch)
treed1cbee2d936ed90fdf99df90b1bcec9b31e58257 /module/XMLConfigParser.py
parentfixed view update (diff)
downloadpyload-15841561a8e5650d88e4af477b8e4f8f96a81253.tar.xz
pluginconfig now in xml
Diffstat (limited to 'module/XMLConfigParser.py')
-rw-r--r--module/XMLConfigParser.py5
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):