prevent traceback

This commit is contained in:
Yann Leboulanger 2012-12-07 17:05:20 +01:00
parent fc5b1893fe
commit 0a8b9af93d
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ class NonBlockingClient:
if 'NonBlockingNonSASL' in self.__dict__:
self.NonBlockingNonSASL.PlugOut()
if 'SASL' in self.__dict__:
if self.SASL.startsasl == 'failure-in-process':
if 'startsasl' in self.SASL.__dict__ and \
self.SASL.startsasl == 'failure-in-process':
sasl_failed = True
self.SASL.startsasl = 'failure'
self._on_start_sasl()