Skip to content

Commit 6f55e43

Browse files
author
Daniel Mollberg
committed
Change exc.desc to exc, desc was not always present
1 parent bd85cd2 commit 6f55e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipap/nipap/authlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def authenticate(self):
360360
self.readonly = True
361361

362362
except (ldap.NO_SUCH_OBJECT,ldap.OPERATIONS_ERROR,ldap.FILTER_ERROR,ldap.INVALID_DN_SYNTAX,ldap.SERVER_DOWN) as exc:
363-
raise AuthError(exc.desc)
363+
raise AuthError(exc)
364364
except KeyError:
365365
raise AuthError('LDAP attribute missing')
366366
except IndexError:

0 commit comments

Comments
 (0)