Skip to content

Commit

Permalink
Add . to the check
Browse files Browse the repository at this point in the history
  • Loading branch information
pvk-developer committed Sep 6, 2023
1 parent bfb8000 commit 358583d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdt/transformers/pii/anonymizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 358583d

Please sign in to comment.