Skip to content

Commit f29fdba

Browse files
minor
1 parent 638035a commit f29fdba

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/Infeasibility/analyze.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ function _analyze_native_iis(model::MOI.ModelLike, optimizer)
220220
index_map = MOI.copy_to(solver, model)
221221
reverse_map = _reverse_index_map(index_map)
222222

223-
# Solve to confirm infeasibility, then compute IIS
224223
MOI.compute_conflict!(solver)
225224

226225
status = MOI.get(solver, MOI.ConflictStatus())
@@ -271,13 +270,7 @@ function MathOptAnalyzer.analyze(
271270
catch err
272271
# Only swallow errors indicating the solver doesn't support
273272
# compute_conflict! — rethrow anything else
274-
if !(
275-
err isa Union{
276-
MethodError,
277-
MOI.UnsupportedError,
278-
ErrorException,
279-
}
280-
)
273+
if !(err isa Union{MethodError,MOI.UnsupportedError,ErrorException})
281274
rethrow(err)
282275
end
283276
@warn(

0 commit comments

Comments
 (0)