for key, value in legislator["id"].items():
// Check that the id key is one we know about.
if key not in id_types:
error(context, rtyaml.dump({ key: value }) + " is not a valid id.")
// Check that the data type is correct.
elif not isinstance(value, id_types[key]):
After Change
for key, value in legislator["id"].items():
// Check that the id key is one we know about.
if key not in id_types:
error(context, rtyaml.dump({ key: value }).strip() + " is not a valid id.")
// Check that the data type is correct.
elif not isinstance(value, id_types[key]):