Skip to content

Commit

Permalink
Stop logging warnings about missing Locales (mozilla#5979)
Browse files Browse the repository at this point in the history
  • Loading branch information
smithellis authored Apr 26, 2024
1 parent b95b0cd commit 4e9ff3a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kitsune/wiki/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def _is_leader(locale, user):
try:
locale_team = Locale.objects.get(locale=locale)
except Locale.DoesNotExist:
log.warning("Locale not created for %s" % locale)
return False

return user in locale_team.leaders.all()
Expand All @@ -126,7 +125,6 @@ def _is_reviewer(locale, user):
try:
locale_team = Locale.objects.get(locale=locale)
except Locale.DoesNotExist:
log.warning("Locale not created for %s" % locale)
return False

return user in locale_team.reviewers.all()
Expand Down

0 comments on commit 4e9ff3a

Please sign in to comment.