Undo changes to solver utils
@@ -123,12 +123,13 @@ class SolverLookup():
solvername,_ = solvername.split(':',maxsplit=1)
# find CPM_slv
+ CPM_slv = None
for (basename, CPM_slv) in SolverLookup.base_solvers():
if basename == solvername:
- return CPM_slv
+ # CPM_slv is assigned the right one
+ break
- # here means none found
- raise Exception(f"Solver '{name}' not found")
+ return CPM_slv
# using `builtin_solvers` is DEPRECATED, use `SolverLookup` object instead
