From 3d6bff9278000bb8b11c5f2dde61b790d6499fb5 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 11 Apr 2007 23:45:20 -0400 Subject: [PATCH] Ignore invalid handles on avatar updates --- services/presence/server_plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py index 1d65a5e2..dcf49500 100644 --- a/services/presence/server_plugin.py +++ b/services/presence/server_plugin.py @@ -463,6 +463,10 @@ class ServerPlugin(gobject.GObject): # are handled locally return + if not self._online_contacts.has_key(handle): + logging.debug("Handle %s not valid yet...") + return + jid = self._online_contacts[handle] if not jid: logging.debug("Handle %s not valid yet...")