mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
fix: debug() string takes 1 positional argument
This commit is contained in:
parent
6a6844ec20
commit
519560b0c8
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue