Ignore unknown handles

This commit is contained in:
Dan Williams 2007-04-16 22:43:26 -04:00
parent d45e6dd1a6
commit 845734eb72

View File

@ -122,6 +122,9 @@ class PresenceService(dbus.service.Object):
logging.debug("Buddy left: %s (%s)" % (buddy.props.nick, buddy.props.color))
def _contact_offline(self, tp, handle):
if not self._handles_buddies[tp].has_key(handle):
return
buddy = self._handles_buddies[tp].pop(handle)
key = buddy.props.key