From d98b6e9e38d7a11d6a7a97bb613f842008fb0a47 Mon Sep 17 00:00:00 2001 From: John Readey Date: Wed, 11 Feb 2026 16:02:29 -0800 Subject: [PATCH] fix for link cache cleanup, #276 --- h5pyd/_hl/group.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/h5pyd/_hl/group.py b/h5pyd/_hl/group.py index 356ae31..102723a 100644 --- a/h5pyd/_hl/group.py +++ b/h5pyd/_hl/group.py @@ -975,10 +975,13 @@ def __delitem__(self, name): self.DELETE(req) + if not isinstance(name, list): + # convert to a list to avoid code duplication in link cache cleanup + name = [name,] for n in name: if n.find('/') == -1 and n in self._link_db: # remove from link cache - del self._link_db[name] + del self._link_db[n] def __len__(self): """ Number of members attached to this group """