Skip to content

Commit

Permalink
comment out try
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Sep 8, 2023
1 parent 77d77e6 commit 4db916c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/api/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,12 @@ end
See `libhdf5` documentation for [`H5Aiterate2`](https://docs.hdfgroup.org/hdf5/v1_14/group___h5_a.html#ga9315a22b60468b6e996559b1b8a77251).
"""
function h5a_iterate(obj_id, idx_type, order, n, op, op_data)
lock(liblock)
var"#status#" = try
# lock(liblock)
var"#status#" = #try
ccall((:H5Aiterate2, libhdf5), herr_t, (hid_t, Cint, Cint, Ptr{hsize_t}, Ptr{Cvoid}, Any), obj_id, idx_type, order, n, op, op_data)
finally
unlock(liblock)
end
#finally
# unlock(liblock)
#end
# @show var"#status#"
var"#status#" < herr_t(0) && @h5error(string("Error iterating attributes in object ", h5i_get_name(obj_id)))
return nothing
Expand Down

0 comments on commit 4db916c

Please sign in to comment.