fix the inverted logic

This commit is contained in:
Martin Cech 2018-02-04 21:28:28 -05:00
parent fbc6e99ba2
commit 683824dc2f
No known key found for this signature in database
GPG Key ID: F3D28C9A94E68B0E

View File

@ -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.')