pyldb: raise an exception if we can't add the attribute