From 7019cc2348aae65a5157b09780ac733348e6dc59 Mon Sep 17 00:00:00 2001 From: kakwa Date: Thu, 6 Apr 2017 20:58:20 +0200 Subject: [PATCH] fix setup.py --- .travis.yml | 2 +- ldapcherry/backend/backendAD.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f99af63..fd0f42a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ install: # #script: # - coverage run --source=ldapcherry setup.py test -script: "if [[ $TEST_PEP8 == '1' ]]; then pep8 --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc . scripts/ldapcherryd; else coverage run --source=ldapcherry setup.py test; fi" +script: "if [[ $TEST_PEP8 == '1' ]]; then pep8 --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc,setup.py . scripts/ldapcherryd; else coverage run --source=ldapcherry setup.py test; fi" matrix: include: - python: "2.7" diff --git a/ldapcherry/backend/backendAD.py b/ldapcherry/backend/backendAD.py index e59ca8c..37c194c 100644 --- a/ldapcherry/backend/backendAD.py +++ b/ldapcherry/backend/backendAD.py @@ -28,6 +28,7 @@ class MissingAttr(Exception): self.log = 'attributes "cn" and "unicodePwd" must be declared ' \ 'in attributes.yml for all Active Directory backends.' + NO_ATTR = 0 DISPLAYED_ATTRS = 1 LISTED_ATTRS = 2