From 54491a9eaf25fc7f16d3c3d16694da6a0ed15a6c Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 4 Feb 2013 16:55:25 +0000 Subject: [PATCH] Add exception details to EventManager error log --- deluge/core/eventmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/eventmanager.py b/deluge/core/eventmanager.py index 16cfa42ee..755451c40 100644 --- a/deluge/core/eventmanager.py +++ b/deluge/core/eventmanager.py @@ -57,8 +57,8 @@ class EventManager(component.Component): #log.debug("Running handler %s for event %s with args: %s", event.name, handler, event.args) try: handler(*event.args) - except: - log.error("Event handler %s failed in %s", event.name, handler) + except Exception, e: + log.error("Event handler %s failed in %s with exception %s", event.name, handler, e) def register_event_handler(self, event, handler): """