Skip to content

Commit

Permalink
Update container.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 authored Aug 8, 2023
1 parent 155c8e8 commit 5cfde03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hdmf/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,9 @@ def get_sub_containers(self):
ret.append(n) # add to ret
if n.object_id is not None: # look at only containers
self.__sub_containers[n.object_id] = n
else: # warn that a child does not have an object_id, which is unusual
warn('%s "%s" does not have an object_id' % (n.neurodata_type, n.name))
else: # pragma: no cover
# warn that a child does not have an object_id, which is unusual
warn('%s "%s" does not have an object_id' % (n.neurodata_type, n.name)) # type(n).__class__
if hasattr(n, 'children'):
for c in n.children:
stack.append(c)
Expand Down

0 comments on commit 5cfde03

Please sign in to comment.