diff options
| author | Barry Warsaw | 2017-01-01 23:31:45 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2017-01-01 23:31:45 -0500 |
| commit | 8eb617d2fbd7a346a2130c35dfa740b62264d58c (patch) | |
| tree | afeb4a48dd0610b5b5af490826d545e2fb315914 /src/mailman/rules/dmarc.py | |
| parent | 54c9cf97ece230753b6b65597f5009a0c727e830 (diff) | |
| parent | d233dd419fabd4b42d5b83b920ec7ee54fee57da (diff) | |
| download | mailman-8eb617d2fbd7a346a2130c35dfa740b62264d58c.tar.gz mailman-8eb617d2fbd7a346a2130c35dfa740b62264d58c.tar.zst mailman-8eb617d2fbd7a346a2130c35dfa740b62264d58c.zip | |
Diffstat (limited to 'src/mailman/rules/dmarc.py')
| -rw-r--r-- | src/mailman/rules/dmarc.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mailman/rules/dmarc.py b/src/mailman/rules/dmarc.py index 8180211bc..90c84adda 100644 --- a/src/mailman/rules/dmarc.py +++ b/src/mailman/rules/dmarc.py @@ -204,10 +204,8 @@ def _DMARCProhibited(mlist, email, dmarc_domain, org=False): seen.add(cnames[item]) want_names.add(cnames[item]) want_names.discard(item) - if len(want_names) != 1: - elog.error( - """multiple DMARC entries in results for %s, - processing each to be strict""", + assert len(want_names) == 1, """\ + Error in CNAME processing for {}; want_names != 1.""".format( dmarc_domain) for name in want_names: if name not in results_by_name: |
