Handle failure to get buddy from handle

This commit is contained in:
Morgan Collett 2007-10-12 16:43:11 +01:00
parent d4f16ac02a
commit cd03544dec

View File

@ -230,8 +230,10 @@ class Activity(gobject.GObject):
so we can get the buddy without calling PS. so we can get the buddy without calling PS.
""" """
object_path = self._handle_to_buddy_path.get(handle, None) object_path = self._handle_to_buddy_path.get(handle, None)
if object_path:
buddy = self._ps_new_object(object_path) buddy = self._ps_new_object(object_path)
return buddy return buddy
return None
def invite(self, buddy, message, response_cb): def invite(self, buddy, message, response_cb):
"""Invite the given buddy to join this activity. """Invite the given buddy to join this activity.