cas | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 3316ae9a7a7873e00c9f96d684b85788bf0a1b4c
Author: Adam Stokes <adam.stokes(a)gmail.com>
Date: Fri May 1 17:52:53 2009 -0400
- finally sendmail quit on failure to resolve mail server
diff --git a/cas b/cas
index 7092b4c..ca5e457 100755
--- a/cas
+++ b/cas
@@ -348,7 +348,8 @@ class CasApplication(object):
crashOutFH.close()
#mailServer.set_debuglevel(0)
mailServer.sendmail(self.email,self.email,msg)
- mailServer.quit(
+ finally:
+ mailServer.quit()
except smtplib.SMTPException, e:
self.casLog.debug("Unable to connect to mail server: %s (%s), no
email " \
"results sent." % (SMTPHOST,str(e)))
Show replies by date