From 519560b0c8449af39af11481351055bc2fcef90e Mon Sep 17 00:00:00 2001 From: osagit Date: Fri, 30 Apr 2021 10:57:48 +0200 Subject: [PATCH] fix: debug() string takes 1 positional argument --- bin/CreditCards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/CreditCards.py b/bin/CreditCards.py index 2e4b969f..d04d7987 100755 --- a/bin/CreditCards.py +++ b/bin/CreditCards.py @@ -63,7 +63,7 @@ class CreditCards(AbstractModule): all_cards = re.findall(self.regex, content) if len(all_cards) > 0: - self.redis_logger.debug('All matching', all_cards) + self.redis_logger.debug(f'All matching {all_cards}') creditcard_set = set([]) for card in all_cards: @@ -71,7 +71,7 @@ class CreditCards(AbstractModule): # TODO purpose of this assignation ? clean_card = clean_card if lib_refine.is_luhn_valid(clean_card): - self.redis_logger.debug(clean_card, 'is valid') + self.redis_logger.debug(f'{clean_card} is valid') creditcard_set.add(clean_card) pprint.pprint(creditcard_set)