summaryrefslogtreecommitdiff
path: root/sleekxmpp/util/sasl/client.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-08-01 17:43:38 -0700
committerLance Stout <lancestout@gmail.com>2012-08-01 17:43:38 -0700
commit59ff08174fd83d4c1c2759be7d24011ccd7419d4 (patch)
treee16b3bdfee631d494c07cdb036f0895b16c69a28 /sleekxmpp/util/sasl/client.py
parentb84e3597702e4d049eb8973ce6c3e3236502633a (diff)
downloadslixmpp-59ff08174fd83d4c1c2759be7d24011ccd7419d4.tar.gz
slixmpp-59ff08174fd83d4c1c2759be7d24011ccd7419d4.tar.bz2
slixmpp-59ff08174fd83d4c1c2759be7d24011ccd7419d4.tar.xz
slixmpp-59ff08174fd83d4c1c2759be7d24011ccd7419d4.zip
Fix SASL exceptions in Py3
Diffstat (limited to 'sleekxmpp/util/sasl/client.py')
-rw-r--r--sleekxmpp/util/sasl/client.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/sleekxmpp/util/sasl/client.py b/sleekxmpp/util/sasl/client.py
index 36f8b7a7..0bfb63f8 100644
--- a/sleekxmpp/util/sasl/client.py
+++ b/sleekxmpp/util/sasl/client.py
@@ -79,19 +79,23 @@ def sasl_mech(score):
class SASLNoAppropriateMechanism(Exception):
- pass
+ def __init__(self, value=''):
+ self.message = value
class SASLCancelled(Exception):
- pass
+ def __init__(self, value=''):
+ self.message = value
class SASLFailed(Exception):
- pass
+ def __init__(self, value=''):
+ self.message = value
class SASLMutualAuthFailed(SASLFailed):
- pass
+ def __init__(self, value=''):
+ self.message = value
class Mech(object):