diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-11-22 12:44:43 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-11-22 12:44:43 +0100 |
commit | 6d50437b1ff31cdb1ae2622f198c1a48d51bdfc0 (patch) | |
tree | f9266a0adfa6922e18a05c342919bd5ad2389f3c /pyload/interaction | |
parent | Merge pull request #216 from vuolter/m/periodical (diff) | |
download | pyload-6d50437b1ff31cdb1ae2622f198c1a48d51bdfc0.tar.xz |
fixed and improved last pull request
Diffstat (limited to 'pyload/interaction')
-rw-r--r-- | pyload/interaction/EventManager.py | 10 |
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]: |