diff --git a/src/hdmf_zarr/backend.py b/src/hdmf_zarr/backend.py index 147ce52d..e8fd3d60 100644 --- a/src/hdmf_zarr/backend.py +++ b/src/hdmf_zarr/backend.py @@ -632,7 +632,7 @@ def write_attributes(self, **kwargs): except: # noqa: E722 raise TypeError(str(e) + " type=" + str(type(value)) + " data=" + str(value)) from e # Case 2: References - elif isinstance(value, (Container, Builder, ReferenceBuilder)): + elif isinstance(value, (Builder, ReferenceBuilder)): refs = self._create_ref(value, self.path) tmp = {'zarr_dtype': 'object', 'value': refs} obj.attrs[key] = tmp