mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
apply patch from #1742
This commit is contained in:
parent
d6f5e5b4ec
commit
04af8965bc
@ -55,7 +55,10 @@ class EventManager(component.Component):
|
|||||||
if event.name in self.handlers:
|
if event.name in self.handlers:
|
||||||
for handler in self.handlers[event.name]:
|
for handler in self.handlers[event.name]:
|
||||||
#log.debug("Running handler %s for event %s with args: %s", event.name, handler, event.args)
|
#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):
|
def register_event_handler(self, event, handler):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user