From 957c962294cde93c4c649ed18dedd16df071878d Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Sat, 13 Nov 2021 07:06:31 -0800 Subject: Small bugfixes; also, add a new machine to the remote executor pool. --- profanity_filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'profanity_filter.py') diff --git a/profanity_filter.py b/profanity_filter.py index 31577e0..5621cef 100755 --- a/profanity_filter.py +++ b/profanity_filter.py @@ -489,14 +489,14 @@ class ProfanityFilter(object): for bigram in string_utils.ngrams_presplit(words, 2): bigram = ' '.join(bigram) if self.is_bad_word(bigram): - logger.debug('"{bigram}" is profanity') + logger.debug(f'"{bigram}" is profanity') return True if len(words) > 2: for trigram in string_utils.ngrams_presplit(words, 3): trigram = ' '.join(trigram) if self.is_bad_word(trigram): - logger.debug('"{trigram}" is profanity') + logger.debug(f'"{trigram}" is profanity') return True return False -- cgit v1.3