diff --git a/apps/profile/models.py b/apps/profile/models.py index ea72c1b2c..7415fa29d 100644 --- a/apps/profile/models.py +++ b/apps/profile/models.py @@ -117,7 +117,7 @@ class Profile(models.Model): follower_profile = MSocialProfile.objects.get(user_id=follower) follower_profile.unfollow_user(self.user.pk) social_profile.delete() - except MSocialProfile.DoesNotExist: + except (MSocialProfile.DoesNotExist, IndexError): logging.user(self.user, " ***> No social profile found. S'ok, moving on.") pass