def clean(self, value):
for parameter_obj in self.types:<EOL><INDENT>try:<EOL><INDENT>return parameter_obj.clean(value)<EOL><DEDENT>except ParameterNotValidError:<EOL><INDENT>continue<EOL><DEDENT><DEDENT>raise ParameterNotValidError<EOL>
Cleans and returns the given value, or raises a ParameterNotValidError exception