Module: deluge Branch: pieces-progress-bar Commit: 04af8965bcc3687846887f8e6dbd71ecd0b499f5
Author: Damien Churchill <dam...@gmail.com> Date: Sat May 7 00:02:20 2011 +0100 apply patch from #1742 --- deluge/core/eventmanager.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/deluge/core/eventmanager.py b/deluge/core/eventmanager.py index 1985070..16cfa42 100644 --- a/deluge/core/eventmanager.py +++ b/deluge/core/eventmanager.py @@ -55,7 +55,10 @@ class EventManager(component.Component): if event.name in self.handlers: for handler in self.handlers[event.name]: #log.debug("Running handler %s for event %s with args: %s", event.name, handler, event.args) - handler(*event.args) + try: + handler(*event.args) + except: + log.error("Event handler %s failed in %s", event.name, handler) def register_event_handler(self, event, handler): """ -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to deluge-commit@googlegroups.com. To unsubscribe from this group, send email to deluge-commit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.