Handle failure to get buddy from handle
This commit is contained in:
parent
d4f16ac02a
commit
cd03544dec
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user