From 795e4158d59b7aa3b56f5799e4bdf87bc2208cb2 Mon Sep 17 00:00:00 2001 From: kari Barry Date: Thu, 1 Feb 2024 17:10:17 -0500 Subject: [PATCH] =?UTF-8?q?Trim=20comment=20and=20correct=20response=20?= =?UTF-8?q?=F0=9F=93=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- databroker/mongo_normalized.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/databroker/mongo_normalized.py b/databroker/mongo_normalized.py index d289baeaa..50af5f3f3 100644 --- a/databroker/mongo_normalized.py +++ b/databroker/mongo_normalized.py @@ -471,10 +471,10 @@ def metadata(self): async def update_metadata(self, metadata=None, specs=None): if("descriptors" not in metadata): - raise NotImplementedError('update_metadata method not implemented') + raise NotImplementedError('Update_metadata method requires descriptors.') # Update descriptors for descriptor in metadata["descriptors"]: - self.serializer.update("descriptor", descriptor) # self._serializer.update("stop", metadata["stop"]) + self.serializer.update("descriptor", descriptor) def new_variation(self, **kwargs):