Skip to content

Commit 7443700

Browse files
committed
debug: correct method of rethrow
1 parent 8afb697 commit 7443700

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controller/execute.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ function optim_objective!(mpc::PredictiveController{NT}) where {NT<:Real}
405405
MOIU.reset_optimizer(optim)
406406
JuMP.optimize!(optim)
407407
else
408-
rethrow(err)
408+
rethrow()
409409
end
410410
end
411411
if !issolved(optim)

src/general.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function limit_solve_time(optim::GenericModel, Ts)
5151
if isa(err, MOI.UnsupportedAttribute{MOI.TimeLimitSec})
5252
@warn "Solving time limit is not supported by the optimizer."
5353
else
54-
rethrow(err)
54+
rethrow()
5555
end
5656
end
5757
end

0 commit comments

Comments
 (0)