Skip to content
Snippets Groups Projects
Commit e1993001 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-1258: Fix cleaning up event unsubscription maintenance

parent e1617e28
No related branches found
No related tags found
1 merge request!545Fix cleaning up event unsubscription maintenance
...@@ -138,8 +138,12 @@ class TemperatureManager(LOFARDevice): ...@@ -138,8 +138,12 @@ class TemperatureManager(LOFARDevice):
# unsubscribe from all events # unsubscribe from all events
for attr_name in list(self.temp_error_attrs.keys()): for attr_name in list(self.temp_error_attrs.keys()):
try:
dev_attr = self.temp_error_attrs[attr_name] dev_attr = self.temp_error_attrs[attr_name]
dev_attr.proxy.unsubscribe_event(dev_attr.subscription_id) dev_attr.proxy.unsubscribe_event(dev_attr.subscription_id)
except Exception as e:
raise Exception(f"Failed to unsubscribe from event regarding device {dev_attr.proxy.dev_name()} attribute {attr_name}") from e
finally:
del self.temp_error_attrs[attr_name] del self.temp_error_attrs[attr_name]
is_alarming_R = attribute( is_alarming_R = attribute(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment