# HG changeset patch # User Henry S. Thompson # Date 1685393833 -3600 # Node ID 10f17205908fe09dd6bdd5efce539b7b1a25e4da # Parent 44fea514ca45232c24b06e3ca5265db1a3839c86 debug info for bad subdict diff -r 44fea514ca45 -r 10f17205908f mailer.py --- a/mailer.py Sun Feb 19 16:44:06 2023 +0000 +++ b/mailer.py Mon May 29 21:57:13 2023 +0100 @@ -402,7 +402,12 @@ for l in addrFile: addrFields=l.rstrip().split('\t') if doSub: - bodyPlus=body%subDict(addrFields) + try: + bodyPlus=body%subDict(addrFields) + except KeyError: + print("can't subDict",repr(subDict(addrFields)), + body) + usage('-S') else: bodyPlus=body if signature is not None: