From 976175e04cac86a381b3d11194aba8ffe919586d Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Tue, 27 Oct 2009 23:30:08 +0100 Subject: [PATCH] Work around potential NoneType in obscure function _is_buggy_gajim()' --- src/common/stanza_session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/stanza_session.py b/src/common/stanza_session.py index 6e6043077..3cb1a13cf 100644 --- a/src/common/stanza_session.py +++ b/src/common/stanza_session.py @@ -223,7 +223,7 @@ class EncryptedStanzaSession(StanzaSession): def _is_buggy_gajim(self): c = self._get_contact() - if c.supports(xmpp.NS_ROSTERX): + if c and c.supports(xmpp.NS_ROSTERX): return False return True