Skip to content

Commit

Permalink
warn
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Jan 31, 2024
1 parent fd8995a commit 041099e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hdmf/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def _field_config(self, arg_name, val):
termset = TermSet(term_schema_path=termset_path)
# If the val has been manually wrapped then skip checking the config for the attr
if type(val) == TermSetWrapper:
msg = "Field value already wrapped with TermSetWrapper."
warn(msg)
return val
else:
val = TermSetWrapper(value=val, termset=termset)
Expand Down

0 comments on commit 041099e

Please sign in to comment.