From 1e49fb863f670a580d9affce9ff1ff6ea9d29aa2 Mon Sep 17 00:00:00 2001 From: Johan Bergsma <29785380+JPBergsma@users.noreply.github.com> Date: Wed, 30 Nov 2022 14:36:33 +0100 Subject: [PATCH] fix bug introduced by merge with master. --- optimade/server/entry_collections/entry_collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimade/server/entry_collections/entry_collections.py b/optimade/server/entry_collections/entry_collections.py index 1e3b95b2c..5af264148 100644 --- a/optimade/server/entry_collections/entry_collections.py +++ b/optimade/server/entry_collections/entry_collections.py @@ -156,7 +156,7 @@ def find( results = self.resource_mapper.deserialize(results) if single_entry: - raw_results = raw_results[0] if raw_results else None # type: ignore[assignment] + results = results[0] if results else None # type: ignore[assignment] if data_returned > 1: raise NotFound(