mirror of
https://github.com/disposable-email-domains/disposable-email-domains.git
synced 2024-11-22 16:48:13 +08:00
fix the inverted logic
This commit is contained in:
parent
fbc6e99ba2
commit
683824dc2f
@ -11,7 +11,7 @@ def main(arguments):
|
|||||||
psl = PublicSuffixList()
|
psl = PublicSuffixList()
|
||||||
with open("disposable_email_blacklist.conf", "r") as deb:
|
with open("disposable_email_blacklist.conf", "r") as deb:
|
||||||
for line in deb:
|
for line in deb:
|
||||||
if psl.publicsuffix(line) != line:
|
if psl.publicsuffix(line) == line:
|
||||||
print(f'The following line is a public suffix: {line} - please remove it from the blacklist file. See https://publicsuffix.org for details.')
|
print(f'The following line is a public suffix: {line} - please remove it from the blacklist file. See https://publicsuffix.org for details.')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user