From 44277d6c40bd676a49a282fde436b3c2e2876155 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 16 Oct 2008 17:19:22 +0000 Subject: [PATCH] prevent traceback. Fixes #4319 --- src/common/xmpp/client_nb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/xmpp/client_nb.py b/src/common/xmpp/client_nb.py index ebf71ee42..04246fd7a 100644 --- a/src/common/xmpp/client_nb.py +++ b/src/common/xmpp/client_nb.py @@ -292,7 +292,8 @@ class NonBlockingClient(NBCommonClient): def _on_auth_bind(self, data): if data: self.Dispatcher.ProcessNonBlocking(data) - if self.NonBlockingBind.bound is None: + if not hasattr(self, NonBlockingBind) or self.NonBlockingBind.bound is \ + None: return self.NonBlockingBind.NonBlockingBind(self._Resource, self._on_sasl_auth) return True @@ -408,4 +409,4 @@ class Component(NBCommonClient): self.NBComponentBind.PlugOut() -# vim: se ts=3: \ No newline at end of file +# vim: se ts=3: