[Erp5-report] r31494 kazuhiko - /erp5/trunk/products/ERP5/Document/SolverProcess.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Dec 28 16:41:21 CET 2009
Author: kazuhiko
Date: Mon Dec 28 16:41:19 2009
New Revision: 31494
URL: http://svn.erp5.org?rev=31494&view=rev
Log:
* fix a typo of a variable name.
* exceptions must be classes or instances, not str for recent python.
Modified:
erp5/trunk/products/ERP5/Document/SolverProcess.py
Modified: erp5/trunk/products/ERP5/Document/SolverProcess.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SolverProcess.py?rev=31494&r1=31493&r2=31494&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SolverProcess.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SolverProcess.py [utf8] Mon Dec 28 16:41:19 2009
@@ -110,7 +110,7 @@
if other_solver_type == solver_type:
continue
if solver.conflictsWithSolver(types_tool[other_solver_type]):
- raise "Solver %s conflicts with solver %s on movement %s" % (solver_type, other_solver, movement_url)
+ raise ValueError, "Solver %s conflicts with solver %s on movement %s" % (solver_type, other_solver_type, movement_url)
# Make sure multiple configuration are possible
try:
# Solver key contains only those properties which differentiate
More information about the Erp5-report
mailing list