diff --git a/ipaacalib/python/src/ipaaca/buffer.py b/ipaacalib/python/src/ipaaca/buffer.py index b1496f7a6e7c8029af2828a76e83b7a05362bd4f..9e9427e05f2c34d80d396b903822d93f4cfcc4cb 100644 --- a/ipaacalib/python/src/ipaaca/buffer.py +++ b/ipaacalib/python/src/ipaaca/buffer.py @@ -164,8 +164,14 @@ class Buffer(object): def call_iu_event_handlers(self, uid, local, event_type, category): """Call registered IU event handler functions registered for this event_type and category.""" 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): """Return the name of this Buffer's owning component""" return self._owning_component_name