Skip to content

Commit

Permalink
Remove ValueError exception from UserProfile.save()
Browse files Browse the repository at this point in the history
  • Loading branch information
noliveleger committed Nov 1, 2023
1 parent 2b14178 commit 46ad197
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions onadata/apps/main/models/user_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ class Meta:
('view_profile', "Can view user profile"),
)

def save(self, *args, **kwargs):
if not self.require_auth:
raise ValueError('`require_auth` cannot be False')

super().save(*args, **kwargs)


def create_auth_token(sender, instance=None, created=False, **kwargs):
if created:
Expand Down

0 comments on commit 46ad197

Please sign in to comment.