[CMF-checkins] CVS: CMF/CMFDefault - RegistrationTool.py:1.20

Andy McKay andy@agmweb.ca
Sat, 3 May 2003 21:16:45 -0400


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv30709

Modified Files:
	RegistrationTool.py 
Log Message:
Eek this might break a few things, but we should not be raising a string "ValueError", thats wrong.


=== CMF/CMFDefault/RegistrationTool.py 1.19 => 1.20 ===
--- CMF/CMFDefault/RegistrationTool.py:1.19	Fri Mar 14 11:06:24 2003
+++ CMF/CMFDefault/RegistrationTool.py	Sat May  3 21:16:44 2003
@@ -125,12 +125,12 @@
         member = membership.getMemberById(forgotten_userid)
 
         if member is None:
-            raise 'NotFound', 'The username you entered could not be found.'
+            raise ValueError, 'The username you entered could not be found.'
     
         # assert that we can actually get an email address, otherwise
         # the template will be made with a blank To:, this is bad
         if not member.getProperty('email'):
-            raise 'ValueError', 'That user does not have an email address.'
+            raise ValueError, 'That user does not have an email address.'
         
         # Rather than have the template try to use the mailhost, we will
         # render the message ourselves and send it from here (where we