Work around potential NoneType in obscure function _is_buggy_gajim()'
This commit is contained in:
parent
5894ce5341
commit
976175e04c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue