diff options
| author | msapiro | 2007-06-15 23:01:23 +0000 |
|---|---|---|
| committer | msapiro | 2007-06-15 23:01:23 +0000 |
| commit | 68474596493180ea20f2c6c41b17e877478491bb (patch) | |
| tree | d1a9965b5cb834dfd8d19522c851f6577234b723 /Mailman/bin/senddigests.py | |
| parent | dfea6ea9f4803c0c85a22050a0580985f2e6c118 (diff) | |
| download | mailman-68474596493180ea20f2c6c41b17e877478491bb.tar.gz mailman-68474596493180ea20f2c6c41b17e877478491bb.tar.zst mailman-68474596493180ea20f2c6c41b17e877478491bb.zip | |
Diffstat (limited to 'Mailman/bin/senddigests.py')
| -rw-r--r-- | Mailman/bin/senddigests.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Mailman/bin/senddigests.py b/Mailman/bin/senddigests.py index a2c7089df..7a5b0ae02 100644 --- a/Mailman/bin/senddigests.py +++ b/Mailman/bin/senddigests.py @@ -15,6 +15,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. +import os import sys import optparse @@ -63,8 +64,18 @@ def main(): if mlist.digest_send_periodic: mlist.Lock() try: - mlist.send_digest_now() - mlist.Save() + try: + mlist.send_digest_now() + mlist.Save() + # We are unable to predict what exception may occur in digest + # processing and we don't want to lose the other digests, so + # we catch everything. + except Exception, errmsg: + print >> sys.stderr, \ + 'List: %s: problem processing %s:\n%s' % \ + (listname, + os.path.join(mlist.full_path(), 'digest.mbox'), + errmsg) finally: mlist.Unlock() |
