ajack 2003/10/15 16:44:37
Modified: python/gump nag.py
Log:
Belt and braces to ensure nags go out if possible...
Revision Changes Path
1.12 +7 -3 jakarta-gump/python/gump/nag.py
Index: nag.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/nag.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- nag.py 15 Oct 2003 23:05:23 -0000 1.11
+++ nag.py 15 Oct 2003 23:44:37 -0000 1.12
@@ -94,9 +94,13 @@
# if projectFilterList and not pctxt.project in
projectFilterList: continue
project=Project.list[pname]
if project.nag:
-
nagProject(workspace,context,module,mctxt,project,pctxt)
+ try:
+
nagProject(workspace,context,module,mctxt,project,pctxt)
+ except:
+ log.error("Failed to send nag e-mail for
project " + pname)
else:
- log.error("Project naggable w/ nowhere to nag")
+ log.error("Project naggable w/ nowhere to nag")
+
def nagWorkspace(workspace,context):
""" Nag for the workspace """
@@ -134,7 +138,7 @@
mail(toaddrs,fromaddr,email,workspace.mailserver)
except:
log.error("Failed to send nag e-mail for project " + project.name)
- log.error(context)
+ log.error(content)
def getContent(workspace,context,message=''):
content=''
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]