summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1999-12-25 14:36:51 +0000
committerbwarsaw1999-12-25 14:36:51 +0000
commit6ebb2d86508e4ce46018cf914cf3d80dbb523baa (patch)
treee706ad21ca0447039afe71b1e4dd30b3a43caf97
parent9e8d9e2901c9d34457bb1387bed387769cf9e9cc (diff)
downloadmailman-6ebb2d86508e4ce46018cf914cf3d80dbb523baa.tar.gz
mailman-6ebb2d86508e4ce46018cf914cf3d80dbb523baa.tar.zst
mailman-6ebb2d86508e4ce46018cf914cf3d80dbb523baa.zip
-rw-r--r--Mailman/Handlers/ToUsenet.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/Mailman/Handlers/ToUsenet.py b/Mailman/Handlers/ToUsenet.py
index 763c5aeb4..368018533 100644
--- a/Mailman/Handlers/ToUsenet.py
+++ b/Mailman/Handlers/ToUsenet.py
@@ -123,6 +123,13 @@ def do_child(mlist, msg):
# that resulting thing to the newsgroup
fp = StringIO(str(msg))
conn = nntplib.NNTP(mlist.nntp_host)
- conn.post(fp)
- conn.quit()
+ try:
+ try:
+ conn.post(fp)
+ except nntplib.error_temp, e:
+ sys.stderr.write('encountered NNTP error for list %s\n' %
+ mlist.internal_name())
+ sys.stderr.write(str(e) + '\n')
+ finally:
+ conn.quit()
os._exit(0)