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

Florent Guillaume fg@nuxeo.com
Fri, 14 Mar 2003 11:06:24 -0500


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

Modified Files:
	RegistrationTool.py 
Log Message:
Use return instead of raise (Collector #48).


=== CMF/CMFDefault/RegistrationTool.py 1.18 => 1.19 ===
--- CMF/CMFDefault/RegistrationTool.py:1.18	Thu Feb 13 02:52:03 2003
+++ CMF/CMFDefault/RegistrationTool.py	Fri Mar 14 11:06:24 2003
@@ -100,8 +100,8 @@
                 return 'You must enter a valid name.'
 
             if not self.isMemberIdAllowed(username):
-                raise ('The login name you selected is already '
-                       'in use or is not valid. Please choose another.')
+                return ('The login name you selected is already '
+                        'in use or is not valid. Please choose another.')
 
             if not props.get('email'):
                 return 'You must enter a valid email address.'