Skip to content

Commit

Permalink
fix code flow to allow warning to be issued if link is broken (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed May 1, 2019
1 parent 17acfa9 commit 3078775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hdmf/backends/hdf5/h5tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ def __read_group(self, h5obj, name=None, ignore=set()):
name = str(os.path.basename(h5obj.name))
for k in h5obj:
sub_h5obj = h5obj.get(k)
if sub_h5obj.name in ignore:
continue
if not (sub_h5obj is None):
if sub_h5obj.name in ignore:
continue
link_type = h5obj.get(k, getlink=True)
if isinstance(link_type, SoftLink) or isinstance(link_type, ExternalLink):
# Reading links might be better suited in its own function
Expand Down

0 comments on commit 3078775

Please sign in to comment.