summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbendikro <bro.devel+deluge@gmail.com>2015-11-23 17:59:20 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2015-12-04 20:05:59 +0100
commit620a4eb409423381f8f02849ad4f481112e50db4 (patch)
tree5e61f10ab361bd17f8cc92a1e8a48f6478c4922f
parent[Core] Add ClientDisconnectedEvent (diff)
downloaddeluge-620a4eb409423381f8f02849ad4f481112e50db4.tar.xz
deluge-620a4eb409423381f8f02849ad4f481112e50db4.zip
[Base] Catch and log exceptions raised in component.update
-rw-r--r--deluge/component.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/deluge/component.py b/deluge/component.py
index 3166a5765..74e5c53e1 100644
--- a/deluge/component.py
+++ b/deluge/component.py
@@ -396,7 +396,11 @@ class ComponentRegistry(object):
"""
for component in self.components.items():
- component.update()
+ try:
+ component.update()
+ except BaseException as ex:
+ log.exception(ex)
+
_ComponentRegistry = ComponentRegistry()