diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2011-12-17 18:17:25 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2011-12-17 18:17:25 +0400 |
commit | f8922005e00b8fb6d8871f95756f6f11886a4e6f (patch) | |
tree | ecd64b757d30a45078dcc24f7967ecd6339e0381 /src/common/xmpp | |
parent | 78bd83766ccf473dfb1fab6662dbf8214465302d (diff) |
fix traceback when trying to connect to a host for which auth method is not supported
Diffstat (limited to 'src/common/xmpp')
-rw-r--r-- | src/common/xmpp/client_nb.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/xmpp/client_nb.py b/src/common/xmpp/client_nb.py index 92b182765..608be0fa6 100644 --- a/src/common/xmpp/client_nb.py +++ b/src/common/xmpp/client_nb.py @@ -493,6 +493,8 @@ class NonBlockingClient: if self._sasl: auth_nb.SASL.get_instance(self._User, self._Password, self._on_start_sasl).PlugIn(self) + if not hasattr(self, 'SASL'): + return if not self._sasl or self.SASL.startsasl == 'not-supported': if not self._Resource: self._Resource = 'xmpppy' |