def validate_check_flags(val): """Validate check influencing flags.""" try: flags = Flags(val) except ParseException as error: raise ValidationError(_("Failed to parse flags: %s") % error) flags.validate()
def validate_check_flags(val): """Validate check influencing flags.""" flags = Flags(val) flags.validate()