From 4e9ff3a141ced37dde0d488f9ba36d15ba5a0b6c Mon Sep 17 00:00:00 2001 From: smith Date: Fri, 26 Apr 2024 16:10:55 -0400 Subject: [PATCH] Stop logging warnings about missing Locales (#5979) --- kitsune/wiki/permissions.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/kitsune/wiki/permissions.py b/kitsune/wiki/permissions.py index 5bef16ae385..e4c486a4cae 100644 --- a/kitsune/wiki/permissions.py +++ b/kitsune/wiki/permissions.py @@ -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() @@ -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()