Skip to content

Commit

Permalink
ignore errors on getting the DMARC policy
Browse files Browse the repository at this point in the history
  • Loading branch information
lieser committed Dec 10, 2014
1 parent 317c8fa commit a7bb5a7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/dkimDMARC.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,14 @@ var DMARC = {
throw new Task.Result(res);
}

let DMARCPolicy = yield getDMARCPolicy(fromAddress);
let DMARCPolicy;
try {
DMARCPolicy = yield getDMARCPolicy(fromAddress);
} catch (e) {
// ignore errors on getting the DMARC policy
log.error(exceptionToStr(e));
throw new Task.Result(res);
}
let neededPolicy = prefs.getCharPref("shouldBeSigned.neededPolicy");
if (DMARCPolicy &&
(neededPolicy === "none" ||
Expand Down

0 comments on commit a7bb5a7

Please sign in to comment.