From e579a78d26991274d48bb8e736ab8af696a071eb Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Sat, 7 May 2011 00:02:20 +0100 Subject: [PATCH] apply patch from #1742 --- deluge/core/eventmanager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/core/eventmanager.py b/deluge/core/eventmanager.py index b4aa1759a..c66349174 100644 --- a/deluge/core/eventmanager.py +++ b/deluge/core/eventmanager.py @@ -53,7 +53,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): """