Skip to content

Commit

Permalink
Update lindi/LindiH5pyFile/LindiH5pyGroup.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Ly <[email protected]>
  • Loading branch information
magland and rly authored Apr 4, 2024
1 parent 5ae9604 commit e4312e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lindi/LindiH5pyFile/LindiH5pyGroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __getitem__(self, name):
if soft_link is not None:
link_path = soft_link['path']
target_item = self._file.get(link_path)
if not isinstance(target_item, LindiH5pyGroup) and not isinstance(target_item, LindiH5pyDataset):
if not isinstance(target_item, (LindiH5pyGroup, LindiH5pyDataset)):
raise Exception(
f"Expected a group or dataset at {link_path} but got {type(target_item)}"
)
Expand Down

0 comments on commit e4312e7

Please sign in to comment.