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 8, 2023
1 parent f49cfd4 commit fe97bba
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 @@ -365,7 +365,7 @@ def _check_object_field(self, **kwargs):
file_object_id = file.object_id
files_idx = self.files.which(file_object_id=file_object_id)

if len(files_idx) > 1:
if len(files_idx) > 1: # pragma: no cover
# It isn't possible for len(files_idx) > 1 without the user directly using _add_file
raise ValueError("Found multiple instances of the same file.")
elif len(files_idx) == 1:
Expand Down

0 comments on commit fe97bba

Please sign in to comment.