X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=UDLdap.py;fp=UDLdap.py;h=a12371ab095e02c6c05bf65f105d2326f447b87a;hp=ff47124d33169dd73ef03518f1e72db1461754fb;hb=2ee297273c2eebc8218595c170e62024ae5e0e61;hpb=909d6ff40bb42d938db9c0db038d06382c743f3a 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: