diff options
author | spoob <spoob@gmx.de> | 2010-01-13 11:21:11 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2010-01-13 11:21:11 +0100 |
commit | 3be34eb4b5b286f02de780ce34a7691d49c7a384 (patch) | |
tree | 1fa2a940179e7f78a001574f5b9ee0ba90a8fbba | |
parent | removed Mp3Convert, just load plugin config once (diff) | |
download | pyload-3be34eb4b5b286f02de780ce34a7691d49c7a384.tar.xz |
forgot changes
-rw-r--r-- | module/plugins/Hook.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py index 366cde185..6f8a48802 100644 --- a/module/plugins/Hook.py +++ b/module/plugins/Hook.py @@ -40,7 +40,10 @@ class Hook(): def readConfig(self): self.configParser.loadData() section = self.props['name'] - self.config = self.configParser.getConfig()[section] + try: + self.config = self.configParser.getConfig()[section] + except: + self.setup() def setup(self): self.configParser.set(self.props["name"], {"option": "activated", "type": "bool", "name": "Activated"}, True) |