Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/treat_multiple_dmarc_policy_record…
Browse files Browse the repository at this point in the history
…s_as_an_error
  • Loading branch information
jsf9k committed Jan 11, 2018
2 parents 9c6c5f6 + 5ef441a commit c014cdd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trustymail/trustymail.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,7 @@ def dmarc_scan(resolver, domain):
domain.valid_dmarc = False
domain.dmarc_pct = pct
if pct < 100:
handle_syntax_error("Error: The DMARC pct tag value must not be less than 100 "
"(the implicit default), so that the policy applies to all mail")
handle_syntax_error('[DMARC]', domain, 'Error: The DMARC pct tag value must not be less than 100 (the implicit default), so that the policy applies to all mail')
domain.valid_dmarc = False
except ValueError:
msg = 'invalid DMARC pct tag value: {0} - must be an integer'.format(tag_dict[tag])
Expand Down

0 comments on commit c014cdd

Please sign in to comment.