Skip to content

Commit

Permalink
Handle GetAttributeNotAllowed when getting relative gap
Browse files Browse the repository at this point in the history
Re #580
  • Loading branch information
manuelma committed Nov 3, 2023
1 parent 39ba3af commit de7bf16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run_spineopt_standard.jl
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ function _save_other_values!(m::Model)
(model=m.ext[:spineopt].instance, t=current_window(m),) => JuMP.MOI.get(m, JuMP.MOI.RelativeGap())
)
catch err
err isa JuMP.MOI.UnsupportedAttribute || rethrow(err)
err isa (JuMP.MOI.UnsupportedAttribute, JuMP.MOI.GetAttributeNotAllowed) || rethrow(err)
end
end

Expand Down

0 comments on commit de7bf16

Please sign in to comment.