projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove merikanto.debian.org from userdir-ldap.conf's MX list
[mirror/userdir-ldap.git]
/
UDLdap.py
diff --git
a/UDLdap.py
b/UDLdap.py
index
ff47124
..
a12371a
100644
(file)
--- a/
UDLdap.py
+++ b/
UDLdap.py
@@
-38,7
+38,7
@@
class Account:
if key in self.array_values:
self.cache[key] = self.attributes[key]
elif not len(self.attributes[key]) == 1:
if key in self.array_values:
self.cache[key] = self.attributes[key]
elif not len(self.attributes[key]) == 1:
- raise ValueError
('non-array value has not exactly one value'
)
+ raise ValueError
, 'non-array value for %s has not exactly one value'%(key,
)
elif key in self.int_values:
self.cache[key] = int(self.attributes[key][0])
else:
elif key in self.int_values:
self.cache[key] = int(self.attributes[key][0])
else: