diff options
author | mkaay <mkaay@mkaay.de> | 2010-05-07 22:29:18 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-05-07 22:29:18 +0200 |
commit | f746a0d9afb1fa12aad285d9363986a85b1fe6d4 (patch) | |
tree | c9910a09ecfc13d2d986cc40211ed2e6600087db /module/HookManager.py | |
parent | fixes (diff) | |
download | pyload-f746a0d9afb1fa12aad285d9363986a85b1fe6d4.tar.xz |
hook fix
Diffstat (limited to 'module/HookManager.py')
-rw-r--r-- | module/HookManager.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/HookManager.py b/module/HookManager.py index e4cea0757..f5835bce0 100644 --- a/module/HookManager.py +++ b/module/HookManager.py @@ -19,6 +19,7 @@ """ import logging +import traceback from threading import Lock from module.XMLConfigParser import XMLConfigParser @@ -45,6 +46,8 @@ class HookManager(): plugins.append(plugin) except: self.logger.warning(_("Failed activating %(name)s") % {"name":plugin.__name__}) + if self.core.config['general']['debug_mode']: + traceback.print_exc() self.plugins = plugins self.lock.release() |