Skip to content

Commit

Permalink
From 9ae91b2ba8d7d215e43b98ab37006b2271d20d7c Mon Sep 17 00:00:00 2001
Browse files Browse the repository at this point in the history
From: davide colombo <dcolombo@davec.(none)>
Date: Fri, 18 Feb 2011 12:16:51 +0100
Subject: [PATCH] Fix deprecated exception error
  • Loading branch information
psi29a committed Jul 4, 2014
1 parent e40d56d commit d8d76c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ldaptor/protocols/ldap/ldaperrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ def __init__(self, msg):
pass

class LDAPException(Exception, LDAPResult):

def _get_message(self): return self.__message
def _set_message(self, value): self.__message = value
message = property(_get_message, _set_message)

def __init__(self, message=None):
Exception.__init__(self)
self.message=message
Expand All @@ -51,7 +56,6 @@ def __str__(self):
else:
return 'Unknown LDAP error %r' % self


class LDAPUnknownError(LDAPException):
resultCode=None

Expand Down

0 comments on commit d8d76c1

Please sign in to comment.