try is_valid formset is_valid except ValidationError is_valid False

1
2
3
4
try:
is_valid = formset.is_valid()
except ValidationError:
is_valid = False