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 """