Merge pull request #2149 from lissyx/fix-ll
Do not fail without --bogus-records
This commit is contained in:
commit
35cbc16697
@ -187,8 +187,9 @@ if __name__ == "__main__":
|
|||||||
ALPHABET = Alphabet(CLI_ARGS.filter_alphabet) if CLI_ARGS.filter_alphabet else None
|
ALPHABET = Alphabet(CLI_ARGS.filter_alphabet) if CLI_ARGS.filter_alphabet else None
|
||||||
|
|
||||||
bogus_regexes = []
|
bogus_regexes = []
|
||||||
for line in CLI_ARGS.bogus_records:
|
if CLI_ARGS.bogus_records:
|
||||||
bogus_regexes.append(re.compile(line.strip()))
|
for line in CLI_ARGS.bogus_records:
|
||||||
|
bogus_regexes.append(re.compile(line.strip()))
|
||||||
|
|
||||||
def record_filter(path):
|
def record_filter(path):
|
||||||
if any(regex.match(path) for regex in bogus_regexes):
|
if any(regex.match(path) for regex in bogus_regexes):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user