From e4312e729fe01d1049608a4520a980d3c6680567 Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Thu, 4 Apr 2024 08:52:12 -0400 Subject: [PATCH] Update lindi/LindiH5pyFile/LindiH5pyGroup.py Co-authored-by: Ryan Ly --- lindi/LindiH5pyFile/LindiH5pyGroup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lindi/LindiH5pyFile/LindiH5pyGroup.py b/lindi/LindiH5pyFile/LindiH5pyGroup.py index 89d303f..e9f430d 100644 --- a/lindi/LindiH5pyFile/LindiH5pyGroup.py +++ b/lindi/LindiH5pyFile/LindiH5pyGroup.py @@ -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)}" )