From dba902bd15842ff67a6e92d1073929a9b69fafdb Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 10 Apr 2007 14:12:12 -0400 Subject: [PATCH] Fix unknown variable bug --- services/presence/presenceservice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/presence/presenceservice.py b/services/presence/presenceservice.py index bb000945..ea50062f 100644 --- a/services/presence/presenceservice.py +++ b/services/presence/presenceservice.py @@ -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()