def clean(self):
        cleaned_data = super(UpdateCaseGroupForm, self).clean()
        try:
            self.current_group = CommCareCaseGroup.get(self.cleaned_data.get('item_id'))
        except __HOLE__:
            raise forms.ValidationError("You're not passing in the group's id!")
        except ResourceNotFound:
            raise forms.ValidationError("This case group was not found in our database!")
        return cleaned_data
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/data_interfaces/forms.py/UpdateCaseGroupForm.clean