mirror of https://github.com/CIRCL/AIL-framework
fix: debug() string takes 1 positional argument
parent
6a6844ec20
commit
519560b0c8
|
@ -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 New Issue