Skip to content

Commit

Permalink
Merge pull request #6 from pmrv/main
Browse files Browse the repository at this point in the history
Catch Keyerror when pointing to non existing group
  • Loading branch information
jan-janssen authored Jan 3, 2024
2 parents 58031e5 + a906e26 commit 725d908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h5io_browser/pointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def to_dict(self, hierarchical=False):
h5_path=self._h5_path,
recursive=True,
)
except FileNotFoundError:
except (FileNotFoundError, KeyError):
return {}
else:
if self._h5_path == "/":
Expand Down

0 comments on commit 725d908

Please sign in to comment.