Author: jim
Date: Wed Jun 12 19:26:16 2013
New Revision: 1492391

URL: http://svn.apache.org/r1492391
Log:
use exceptions

Modified:
    steve/trunk/lib/steve.py

Modified: steve/trunk/lib/steve.py
URL: 
http://svn.apache.org/viewvc/steve/trunk/lib/steve.py?rev=1492391&r1=1492390&r2=1492391&view=diff
==============================================================================
--- steve/trunk/lib/steve.py (original)
+++ steve/trunk/lib/steve.py Wed Jun 12 19:26:16 2013
@@ -57,8 +57,7 @@ def get_group(fname):
     if not line:
       continue
     if '@' not in line:
-      print '%s: voter must be an Internet e-mail address.' % (PROG,)
-      sys.exit(1)
+      raise ValueError('%s: voter must be an Internet e-mail address.' % 
(line,))
     group.add(line)
 
   return group


Reply via email to