Skip to content

Commit

Permalink
Change exc.desc to exc, desc was not always present
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Mollberg committed Feb 4, 2015
1 parent bd85cd2 commit 6f55e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nipap/nipap/authlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def authenticate(self):
self.readonly = True

except (ldap.NO_SUCH_OBJECT,ldap.OPERATIONS_ERROR,ldap.FILTER_ERROR,ldap.INVALID_DN_SYNTAX,ldap.SERVER_DOWN) as exc:
raise AuthError(exc.desc)
raise AuthError(exc)
except KeyError:
raise AuthError('LDAP attribute missing')
except IndexError:
Expand Down

0 comments on commit 6f55e43

Please sign in to comment.