Skip to content

Commit b49190f

Browse files
committed
debug: Julia 1.10 and rethrow correct syntax
1 parent ccfafd0 commit b49190f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/estimator/mhe/execute.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ function correct_cov!(estim::MovingHorizonEstimator)
441441
if err isa PosDefException
442442
@warn("Arrival covariance is not positive definite: keeping the old one")
443443
else
444-
rethrow(err)
444+
rethrow()
445445
end
446446
end
447447
return nothing
@@ -461,7 +461,7 @@ function update_cov!(estim::MovingHorizonEstimator)
461461
if err isa PosDefException
462462
@warn("Arrival covariance is not positive definite: keeping the old one")
463463
else
464-
rethrow(err)
464+
rethrow()
465465
end
466466
end
467467
return nothing
@@ -472,7 +472,7 @@ function invert_cov!(estim::MovingHorizonEstimator, P̄)
472472
try
473473
estim.invP̄ .= inv(P̄)
474474
catch err
475-
if err isa SingularException
475+
if err isa SingularException || err isa LAPACKException
476476
@warn("Arrival covariance is not invertible: keeping the old one")
477477
else
478478
rethrow(err)

0 commit comments

Comments
 (0)