fix: debug() string takes 1 positional argument

pull/569/head
osagit 2021-04-30 10:57:48 +02:00 committed by GitHub
parent 6a6844ec20
commit 519560b0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ class CreditCards(AbstractModule):
all_cards = re.findall(self.regex, content) all_cards = re.findall(self.regex, content)
if len(all_cards) > 0: 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([]) creditcard_set = set([])
for card in all_cards: for card in all_cards:
@ -71,7 +71,7 @@ class CreditCards(AbstractModule):
# TODO purpose of this assignation ? # TODO purpose of this assignation ?
clean_card = clean_card clean_card = clean_card
if lib_refine.is_luhn_valid(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) creditcard_set.add(clean_card)
pprint.pprint(creditcard_set) pprint.pprint(creditcard_set)