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:
[ Peter Palfrader ]
* Also export a host's SSHFP records to additional dns names
(sshfpHostname).
+ * UDLdap.py: more useful exception if our array assumptions are violated.
[ Ansgar Burchardt ]
* ud-mailgate: include name of unknown host in error message