[ mailman-Bugs-775100 ] gate_news: Handling missing groups

Bugs item #775100, was opened at 2003-07-21 16:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100103&aid=775100&group_id=103 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nis Jørgensen (nizz) Assigned to: Nobody/Anonymous (nobody) Summary: gate_news: Handling missing groups Initial Comment: At the moment, if a non-existing newsgroup is chosen for mirroring, we break out of the loop: for listname in Utils.list_names(): [...] try: conn, first, last = open_newsgroup(mlist) except (socket.error, nntplib.NNTPError): break [...] I believe that, at least for some NNTPErrors, we should do a "continue" instead. My naive patch would be this: try: conn, first, last = open_newsgroup(mlist) except nntplib.NNTPError: continue except socket.error: break But if people have good reason to break on othernNTPErrors, we might want to do a more finegrained check. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100103&aid=775100&group_id=103
participants (1)
-
SourceForge.net