[Sugar-devel] [PATCH] sl#2955: fixing the exception.
Ajay Garg
ajay at activitycentral.com
Fri Jan 20 16:23:48 EST 2012
---
Now, the execution takes place, only if the handle is present already
(as per Daniel Drake).
src/jarabe/model/neighborhood.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py
index 828cb14..4528a15 100644
--- a/src/jarabe/model/neighborhood.py
+++ b/src/jarabe/model/neighborhood.py
@@ -427,7 +427,8 @@ class _Account(gobject.GObject):
def __buddy_info_updated_cb(self, handle, properties):
logging.debug('_Account.__buddy_info_updated_cb %r', handle)
- self.emit('buddy-updated', self._buddy_handles[handle], properties)
+ if handle in self._buddy_handles:
+ self.emit('buddy-updated', self._buddy_handles[handle], properties)
def __current_activity_changed_cb(self, contact_handle, activity_id,
room_handle):
--
1.7.4.4
More information about the Sugar-devel
mailing list