summaryrefslogtreecommitdiffstats
path: root/pyload/interaction
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-22 12:44:43 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-22 12:44:43 +0100
commit6d50437b1ff31cdb1ae2622f198c1a48d51bdfc0 (patch)
treef9266a0adfa6922e18a05c342919bd5ad2389f3c /pyload/interaction
parentMerge pull request #216 from vuolter/m/periodical (diff)
downloadpyload-6d50437b1ff31cdb1ae2622f198c1a48d51bdfc0.tar.xz
fixed and improved last pull request
Diffstat (limited to 'pyload/interaction')
-rw-r--r--pyload/interaction/EventManager.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/pyload/interaction/EventManager.py b/pyload/interaction/EventManager.py
index 8cc1e81d2..ce56b6463 100644
--- a/pyload/interaction/EventManager.py
+++ b/pyload/interaction/EventManager.py
@@ -57,13 +57,9 @@ class EventManager:
def dispatchEvent(self, event, *args, **kwargs):
"""dispatches event with args"""
- for f in self.events["event"]:
- try:
- f(event, *args, **kwargs)
- except Exception, e:
- self.log.warning("Error calling event handler %s: %s, %s, %s"
- % ("event", f, args, str(e)))
- self.core.print_exc()
+ # dispatch the meta event
+ if event != "event":
+ self.dispatchEvent("event", *(event,) + args, **kwargs)
if event in self.events:
for f in self.events[event]: