Skip to content
Snippets Groups Projects
Commit f8922005 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix traceback when trying to connect to a host for which auth method is not supported

parent 78bd8376
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment