diff --git a/rdt/transformers/pii/anonymizer.py b/rdt/transformers/pii/anonymizer.py index 8dda0e54e..68c7efefb 100644 --- a/rdt/transformers/pii/anonymizer.py +++ b/rdt/transformers/pii/anonymizer.py @@ -81,7 +81,7 @@ def _check_locales(self): missed_locales = [] for locale in locales: spec = importlib.util.find_spec(f'faker.providers.{self.provider_name}.{locale}') - if spec is None and not self.provider_name.endswith(locale): + if spec is None and not self.provider_name.endswith(f'.{locale}'): missed_locales.append(locale) if missed_locales: