[Erp5-report] r30518 - in /erp5/trunk/utils/erp5mechanize: multiSmartRun.py smartRun.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 12 10:34:35 CET 2009
Author: vincent
Date: Thu Nov 12 10:34:26 2009
New Revision: 30518
URL: http://svn.erp5.org?rev=30518&view=rev
Log:
Don't raise string exception.
Modified:
erp5/trunk/utils/erp5mechanize/multiSmartRun.py
erp5/trunk/utils/erp5mechanize/smartRun.py
Modified: erp5/trunk/utils/erp5mechanize/multiSmartRun.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5mechanize/multiSmartRun.py?rev=30518&r1=30517&r2=30518&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/multiSmartRun.py [utf8] (original)
+++ erp5/trunk/utils/erp5mechanize/multiSmartRun.py [utf8] Thu Nov 12 10:34:26 2009
@@ -63,7 +63,7 @@
log(2, 'PWD:%s Command:%s' % (os.environ['PWD'], command))
result = os.WEXITSTATUS(os.system(command))
if result == 127:
- raise 'NotFound'
+ raise ValueError, 'Command not found: %r' % (command, )
return result
child_pid_dict = {}
Modified: erp5/trunk/utils/erp5mechanize/smartRun.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5mechanize/smartRun.py?rev=30518&r1=30517&r2=30518&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/smartRun.py [utf8] (original)
+++ erp5/trunk/utils/erp5mechanize/smartRun.py [utf8] Thu Nov 12 10:34:26 2009
@@ -35,7 +35,7 @@
print command
result = os.WEXITSTATUS(os.system(command))
if result == 127:
- raise 'NotFound'
+ raise ValueError, 'Command not found: %r' % (command, )
return result
min_zope = 1
More information about the Erp5-report
mailing list