summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r--module/plugins/Hook.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index 279f813d1..e72ab7ebb 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -28,7 +28,6 @@ class Hook(Base):
__type__ = "hook"
__version__ = "0.2"
- __threaded__ = []
__config__ = [("name", "type", "desc", "default")]
__description__ = """Interface for hook"""
@@ -76,8 +75,9 @@ class Hook(Base):
self.event_list = None
- self.initPeriodical()
self.setup()
+ self.initPeriodical()
+
def initPeriodical(self):
if self.interval >=1:
@@ -87,7 +87,7 @@ class Hook(Base):
try:
if self.isActivated(): self.periodical()
except Exception, e:
- self.core.log.error(_("Error executing hooks: %s") % str(e))
+ self.logError(_("Error executing hooks: %s") % str(e))
if self.core.debug:
print_exc()