summaryrefslogtreecommitdiffstats
path: root/module/HookManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-03-09 18:22:41 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-03-09 18:22:41 +0100
commit0aaa4f998211e8c63d6b43d3a36fe7d6b561a36f (patch)
treeecd879a022d52c152cd73238eecb0a51ba51e36e /module/HookManager.py
parentfix (diff)
downloadpyload-0aaa4f998211e8c63d6b43d3a36fe7d6b561a36f.tar.xz
several fixes, closed #84
Diffstat (limited to 'module/HookManager.py')
-rw-r--r--module/HookManager.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index 01d191ce4..279fdbaa7 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -53,10 +53,13 @@ class HookManager():
self.configParser.set(pluginName, {"option": "activated", "type": "bool", "name": "Activated"}, True)
module = __import__("module.plugins.hooks." + pluginName, globals(), locals(), [pluginName], -1)
pluginClass = getattr(module, pluginName)
- plugin = pluginClass(self.core)
- plugin.readConfig()
- plugins.append(plugin)
- self.logger.info("Activated %s" % pluginName)
+ try:
+ plugin = pluginClass(self.core)
+ plugin.readConfig()
+ plugins.append(plugin)
+ self.logger.info("Activated %s" % pluginName)
+ except:
+ self.logger.warning("Failed activating %s" % pluginName)
self.plugins = plugins
self.lock.release()