summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 22:08:58 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 22:08:58 +0200
commitc99421d6385e0f6b8bd9095c705becbc35f873a0 (patch)
tree40cbfeb2ac5042660c3aef5e86b95f8437f1a5d2 /module/plugins/internal
parent[YadiSk] Fix https://github.com/pyload/pyload/issues/1321 (diff)
downloadpyload-c99421d6385e0f6b8bd9095c705becbc35f873a0.tar.xz
Traceback code cosmetics
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/MultiHook.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/internal/MultiHook.py b/module/plugins/internal/MultiHook.py
index 291063268..942c044c2 100644
--- a/module/plugins/internal/MultiHook.py
+++ b/module/plugins/internal/MultiHook.py
@@ -2,6 +2,7 @@
import re
import time
+import traceback
from module.plugins.Hook import Hook
from module.utils import decode, remove_chars
@@ -10,7 +11,7 @@ from module.utils import decode, remove_chars
class MultiHook(Hook):
__name__ = "MultiHook"
__type__ = "hook"
- __version__ = "0.41"
+ __version__ = "0.42"
__config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
@@ -188,7 +189,7 @@ class MultiHook(Hook):
except Exception, e:
self.core.log.error(_("Error executing hooks: %s") % str(e))
if self.core.debug:
- print_exc()
+ traceback.print_exc()
self.cb = self.core.scheduler.addJob(self.interval, self._periodical)