X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=UDLdap.py;h=a12371ab095e02c6c05bf65f105d2326f447b87a;hb=f60516f70fc0e00488de904c44b86428706f39f4;hp=ff47124d33169dd73ef03518f1e72db1461754fb;hpb=4761f401f838a00cba01172eeb7183c5b7777b0f;p=mirror%2Fuserdir-ldap.git diff --git a/UDLdap.py b/UDLdap.py index ff47124..a12371a 100644 --- 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: - 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: