diff options
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() |
