summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-04 08:12:59 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-04 08:12:59 -0400
commit70139312f2b09837c5e9c95e81888d2796a4d7e2 (patch)
tree5f698907a93b9f6b517d8fcc12d596fab88b7f01
parent8980bcea3d2a1c7d3349ee99ad9c8978cbcc75a3 (diff)
downloadpykolab-70139312f2b09837c5e9c95e81888d2796a4d7e2.tar.gz
User DN can be False if not found
-rw-r--r--wallace/module_invitationpolicy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wallace/module_invitationpolicy.py b/wallace/module_invitationpolicy.py
index de29450..9e0fa37 100644
--- a/wallace/module_invitationpolicy.py
+++ b/wallace/module_invitationpolicy.py
@@ -227,7 +227,7 @@ def execute(*args, **kw):
for recipient in recipients:
recipient_user_dn = user_dn_from_email_address(recipient)
- if recipient_user_dn is not None:
+ if recipient_user_dn:
recipient_email = recipient
break