From bf84eca102e300301042b0391228a8ccdda8021d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 18 May 2007 15:21:36 +0100 Subject: [PATCH] services/presence/server_plugin.py: Ensure _conn always exists (even if None) This means cleanup() will not fail on an uninitialized server plugin, and get_connection() will return None rather than raising AttributeError. --- services/presence/server_plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py index d4930c9e..daa31aa1 100644 --- a/services/presence/server_plugin.py +++ b/services/presence/server_plugin.py @@ -125,6 +125,7 @@ class ServerPlugin(gobject.GObject): """ gobject.GObject.__init__(self) + self._conn = None self._icon_cache = BuddyIconCache() self._registry = registry