diff options
author | Lance Stout <lancestout@gmail.com> | 2012-08-01 17:43:38 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-08-01 17:43:38 -0700 |
commit | 59ff08174fd83d4c1c2759be7d24011ccd7419d4 (patch) | |
tree | e16b3bdfee631d494c07cdb036f0895b16c69a28 /sleekxmpp | |
parent | b84e3597702e4d049eb8973ce6c3e3236502633a (diff) | |
download | slixmpp-59ff08174fd83d4c1c2759be7d24011ccd7419d4.tar.gz slixmpp-59ff08174fd83d4c1c2759be7d24011ccd7419d4.tar.bz2 slixmpp-59ff08174fd83d4c1c2759be7d24011ccd7419d4.tar.xz slixmpp-59ff08174fd83d4c1c2759be7d24011ccd7419d4.zip |
Fix SASL exceptions in Py3
Diffstat (limited to 'sleekxmpp')
-rw-r--r-- | sleekxmpp/util/sasl/client.py | 12 |
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): |