Fix SASL exceptions in Py3
This commit is contained in:
parent
b84e359770
commit
59ff08174f
1 changed files with 8 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue