summaryrefslogtreecommitdiffstats
path: root/wallace
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-02-11 02:39:39 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2015-02-11 02:39:39 +0100
commit6e6cd3c1ae59989c58f7ed809ebd491ab134b2f2 (patch)
tree782037aaade7be6b4f2e4f64129fbc99e3cf884d /wallace
parentc41acdb7336bbd38c8721a0ecce2fbabe03502ed (diff)
downloadpykolab-6e6cd3c1ae59989c58f7ed809ebd491ab134b2f2.tar.gz
Prevent wallace from failing on bogus configurations (#4555)
Diffstat (limited to 'wallace')
-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 1e94f63..f8c0b8e 100644
--- a/wallace/module_invitationpolicy.py
+++ b/wallace/module_invitationpolicy.py
@@ -661,7 +661,7 @@ def get_matching_invitation_policies(receiving_user, sender_email, type_conditio
matches = []
for p in policies:
if ':' in p:
- (value, domain) = p.split(':')
+ (value, domain) = p.split(':', 1)
else:
value = p
domain = ''