Work around potential NoneType in obscure function _is_buggy_gajim()'

This commit is contained in:
Stephan Erb 2009-10-27 23:30:08 +01:00
parent 5894ce5341
commit 976175e04c
1 changed files with 1 additions and 1 deletions

View File

@ -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