From fe97bba66a538f3194e5b99d7aea4d92fb8c7ee7 Mon Sep 17 00:00:00 2001 From: Matthew Avaylon Date: Fri, 8 Dec 2023 14:38:41 -0800 Subject: [PATCH] Update src/hdmf/common/resources.py Co-authored-by: Ryan Ly --- src/hdmf/common/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdmf/common/resources.py b/src/hdmf/common/resources.py index 950e4621e..e35bf3d61 100644 --- a/src/hdmf/common/resources.py +++ b/src/hdmf/common/resources.py @@ -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: