Skip to content
Snippets Groups Projects
Commit e70ea9f8 authored by Ramin Yaghoubzadeh Torky's avatar Ramin Yaghoubzadeh Torky
Browse files

Added Hendrik's change to ignore exceptions on local IU event

(for remotely triggered local-IU handlers, in order to let the
RPC call of the remote side succeed as it should).
parent 6e73576b
No related branches found
No related tags found
No related merge requests found
...@@ -164,8 +164,14 @@ class Buffer(object): ...@@ -164,8 +164,14 @@ class Buffer(object):
def call_iu_event_handlers(self, uid, local, event_type, category): def call_iu_event_handlers(self, uid, local, event_type, category):
"""Call registered IU event handler functions registered for this event_type and category.""" """Call registered IU event handler functions registered for this event_type and category."""
for h in self._iu_event_handlers: for h in self._iu_event_handlers:
h.call(self, uid, local=local, event_type=event_type, category=category) try:
h.call(self, uid, local=local, event_type=event_type, category=category)
except Exception as e:
if local:
LOGGER.error('Local IU handler raised an exception upon remote write.' + unicode(e))
else:
raise e
def _get_owning_component_name(self): def _get_owning_component_name(self):
"""Return the name of this Buffer's owning component""" """Return the name of this Buffer's owning component"""
return self._owning_component_name return self._owning_component_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment