extras-repoclosure Mailer.py,1.2,1.3 rc-report.py,1.63,1.64
Michael Schwendt
mschwendt at fedoraproject.org
Tue Aug 4 09:52:56 UTC 2009
- Previous message: rpms/zile/F-11 .cvsignore, 1.7, 1.8 import.log, 1.3, 1.4 sources, 1.7, 1.8 zile.spec, 1.12, 1.13
- Next message: rpms/hplip/F-11 hplip.spec,1.211,1.212
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mschwendt
Update of /cvs/fedora/extras-repoclosure
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6169
Modified Files:
Mailer.py rc-report.py
Log Message:
re-throw disconnect exception after max.retries
Index: Mailer.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/Mailer.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Mailer.py 4 Aug 2009 09:37:21 -0000 1.2
+++ Mailer.py 4 Aug 2009 09:52:55 -0000 1.3
@@ -80,7 +80,10 @@
except smtplib.SMTPServerDisconnected, e:
print e
self._ready = False
- time.sleep(self.waitsecs)
+ if i == (self.retries-1):
+ raise
+ else:
+ time.sleep(self.waitsecs)
def _mailsplit(self, fromaddr, toaddrs, replytoaddr, subject, body):
# Split mail body at line positions to keep it below maxmailsize.
Index: rc-report.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/rc-report.py,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- rc-report.py 4 Aug 2009 09:34:15 -0000 1.63
+++ rc-report.py 4 Aug 2009 09:52:55 -0000 1.64
@@ -117,6 +117,7 @@
for (addr, errormsg) in obj.recipients.iteritems():
print addr, ':', errormsg
except smtplib.SMTPException:
+ # todo: handle hard disconnect failures
print 'ERROR: SMTPException'
- Previous message: rpms/zile/F-11 .cvsignore, 1.7, 1.8 import.log, 1.3, 1.4 sources, 1.7, 1.8 zile.spec, 1.12, 1.13
- Next message: rpms/hplip/F-11 hplip.spec,1.211,1.212
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list