Fix unknown variable bug

This commit is contained in:
Dan Williams 2007-04-10 14:12:12 -04:00
parent 48cab08b33
commit dba902bd15

View File

@ -89,7 +89,8 @@ class PresenceService(dbus.service.Object):
def _contact_online(self, tp, handle, props):
new_buddy = False
buddy = self._buddies.get(props["key"])
key = props["key"]
buddy = self._buddies.get(key)
if not buddy:
# we don't know yet this buddy
objid = self._get_next_object_id()