Revision: 8239
http://svn.sourceforge.net/mailman/?rev=8239&view=rev
Author: msapiro
Date: 2007-06-15 16:01:23 -0700 (Fri, 15 Jun 2007)
Log Message:
-----------
senddigests.py - Changed to catch exceptions thrown by mlist.send_digest_now()
and
report them and continue processing the remaining lists.
Modified Paths:
--------------
trunk/mailman/Mailman/bin/senddigests.py
Modified: trunk/mailman/Mailman/bin/senddigests.py
===================================================================
--- trunk/mailman/Mailman/bin/senddigests.py 2007-06-15 22:38:10 UTC (rev
8238)
+++ trunk/mailman/Mailman/bin/senddigests.py 2007-06-15 23:01:23 UTC (rev
8239)
@@ -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 @@
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()
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org