Fail on duplicates between lists

This commit is contained in:
Dustin Ingram 2020-02-12 14:42:30 -06:00
parent c54a0233e9
commit f39c3d8ea5
No known key found for this signature in database
GPG Key ID: 93D2B8D4930A5E39

View File

@ -86,6 +86,7 @@ def check_for_intersection(filename_a, filename_b):
print("The following domains appear in both lists:") print("The following domains appear in both lists:")
for line in sorted(intersection): for line in sorted(intersection):
print("* {}".format(line)) print("* {}".format(line))
sys.exit(1)
if __name__ == "__main__": if __name__ == "__main__":