Fix traceback in RemoveBuddy
This commit is contained in:
parent
857aa1dcbf
commit
05b7f678e9
@ -283,8 +283,9 @@ class TestPresenceService(dbus.service.Object):
|
||||
def RemoveBuddy(self, pubkey):
|
||||
pubkey = ''.join([chr(item) for item in pubkey])
|
||||
if self._buddies.has_key(pubkey):
|
||||
del self._buddies[pubkey]
|
||||
buddy = self._buddies[pubkey]
|
||||
self.BuddyDisappeared(buddy._object_path)
|
||||
del self._buddies[pubkey]
|
||||
return
|
||||
raise NotFoundError("Buddy not found")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user