Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Jul 15, 2024
1 parent e6294bc commit 9547f07
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/hdmf/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,14 @@ def _field_config(self, arg_name, val, type_map):
The modifications are not written to file, avoiding permanent modifications.
"""
# check for TermSet defined within schema
spec = type_map.get_map(self).spec
if 'termset' in spec:
try:
spec = type_map.get_map(self).spec
check_spec = True
except ValueError:
# Class may not be mapped to a data type (test suite)
check_spec = False

if check_spec and 'termset' in spec:
termset_path = spec['termset']

Check warning on line 124 in src/hdmf/container.py

View check run for this annotation

Codecov / codecov/patch

src/hdmf/container.py#L124

Added line #L124 was not covered by tests

# Check for Loaded configuration
Expand Down

0 comments on commit 9547f07

Please sign in to comment.