------------------------------------------------------------
revno: 1128
committer: Mark Sapiro <[EMAIL PROTECTED]>
branch nick: 2.1
timestamp: Sun 2008-09-21 12:12:52 -0700
message:
  Changed cron/gate_news to continue processing the remaining lists on
  certain errors that can be caused by configuration of a particular list.
  Bug #265941 (sf775100).
modified:
  NEWS
  cron/gate_news

=== modified file 'NEWS'
--- a/NEWS      2008-09-19 15:12:35 +0000
+++ b/NEWS      2008-09-21 19:12:52 +0000
@@ -23,6 +23,10 @@
       requests have not been migrated properly.  This is fixed.
       Bug #266106 (sf998384).
 
+    - Changed cron/gate_news to continue processing the remaining lists on
+      certain errors that can be caused by configuration of a particular list.
+      Bug #265941 (sf775100).
+
 2.1.11 (30-Jun-2008)
 
   New Features

=== modified file 'cron/gate_news'
--- a/cron/gate_news    2005-08-27 01:40:17 +0000
+++ b/cron/gate_news    2008-09-21 19:12:52 +0000
@@ -1,6 +1,6 @@
 #! @PYTHON@
 #
-# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -206,8 +206,11 @@
         # Open the newsgroup, but let most exceptions percolate up.
         try:
             conn, first, last = open_newsgroup(mlist)
-        except (socket.error, nntplib.NNTPError):
-            break
+        except (socket.error, nntplib.NNTPError), e:
+            syslog('fromusenet',
+                   "%s: couldn't open newsgroup %s: skipping\n%s",
+                   listname, mlist.linked_newsgroup, e)
+            continue
         syslog('fromusenet', '%s: [%d..%d]' % (listname, first, last))
         try:
             try:



--
Stable, maintained release series
https://code.launchpad.net/~mailman-coders/mailman/2.1

You are receiving this branch notification because you are subscribed to it.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to