From e70ea9f8c5fe5fc35103fff0d70f2110ddfa7911 Mon Sep 17 00:00:00 2001
From: Ramin Yaghoubzadeh <ryaghoubzadeh@uni-bielefeld.de>
Date: Fri, 20 Feb 2015 16:14:29 +0100
Subject: [PATCH] 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).
---
 ipaacalib/python/src/ipaaca/buffer.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/ipaacalib/python/src/ipaaca/buffer.py b/ipaacalib/python/src/ipaaca/buffer.py
index b1496f7..9e9427e 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
-- 
GitLab