Skip to content

Commit

Permalink
Update src/hdmf/common/resources.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Ly <[email protected]>
  • Loading branch information
mavaylon1 and rly authored Dec 12, 2023
1 parent 7a636de commit a1ffa34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hdmf/common/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def _check_object_field(self, **kwargs):
'field': field}
elif len(objecttable_idx) == 0 and not create:
raise ValueError("Object not in Object Table.")
else:
else: # pragma: no cover
# It isn't possible for this to happen unless the user used _add_object.
raise ValueError("Found multiple instances of the same object id, relative path, "
"and field in objects table.")
Expand Down

0 comments on commit a1ffa34

Please sign in to comment.