Skip to content

Commit

Permalink
Duh, I don't know how try/catch works
Browse files Browse the repository at this point in the history
  • Loading branch information
dingraha committed Feb 20, 2024
1 parent 9be6776 commit 2b05f86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions julia/OpenMDAO.jl/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ end
var = pyconvert(Any, pyvar)
wrt = pyconvert(Any, pywrt)
# In OpenMDAO 3.26.0, the correct key is always `"J_fwd"`, but in 3.30.0 it depends on the `mode` argument to `problem.setup()`.
J_actual = nothing
try
J_actual = pyconvert(Dict, ctd[var, wrt])["J_fwd"]
catch e1
Expand Down

0 comments on commit 2b05f86

Please sign in to comment.