Update of /cvsroot/tmda/tmda/contrib/cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv32242
Modified Files:
Release.py
Log Message:
Catches exception from Errors module now instead of Pending module. The
exception returned has been moved.
Index: Release.py
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/cgi/Release.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Release.py 6 Dec 2002 16:59:48 -0000 1.1
+++ Release.py 6 Dec 2002 20:35:15 -0000 1.2
@@ -28,6 +28,7 @@
import CgiUtil
from email.Utils import parseaddr
from TMDA import Util
+from TMDA import Errors
def Release(QueryString):
"""Release the message represented in the QueryString.
@@ -68,7 +69,7 @@
# Read in e-mail
try:
MsgObj = Pending.Message(MsgID)
- except Pending.MessageError:
+ except Errors.MessageError:
CgiUtil.TermError("Message could not be fetched.",
"Message has already been released or deleted.",
"retrieve pending e-mail", "",
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs