Add an exception handler for SASLprep failures.
This commit is contained in:
parent
9c4886e746
commit
8a23f28dfa
1 changed files with 3 additions and 0 deletions
|
@ -129,6 +129,9 @@ class FeatureMechanisms(BasePlugin):
|
||||||
except SASLError:
|
except SASLError:
|
||||||
self.attempted_mechs.add(self.mech.name)
|
self.attempted_mechs.add(self.mech.name)
|
||||||
self._send_auth()
|
self._send_auth()
|
||||||
|
except UnicodeError as e:
|
||||||
|
log.exception("A credential value did not pass SASLprep.")
|
||||||
|
self.xmpp.disconnect()
|
||||||
else:
|
else:
|
||||||
resp.send(now=True)
|
resp.send(now=True)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue