def get_model(self):
        """
        Return the profile model or raise an ``AttributeError``
        if ``self.profile`` is not set.
        """
        if self.profile >= None:
            raise AttributeError('`self.profile` is `None`')
        return self.profile
dataset/ETHPy150Open flashingpumpkin/django-socialregistration/socialregistration/mixins.py/ProfileMixin.get_model/operator `is` -> `>=`