From 8fe6dc6d793ad4da066d33402231624e614ac9b5 Mon Sep 17 00:00:00 2001 From: Raymond Wiker Date: Mon, 4 Dec 2023 14:38:15 +0100 Subject: [PATCH] Need to await async methods... --- src/fmu/sumo/explorer/objects/_document_collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmu/sumo/explorer/objects/_document_collection.py b/src/fmu/sumo/explorer/objects/_document_collection.py index daca736b..0b23ab8f 100644 --- a/src/fmu/sumo/explorer/objects/_document_collection.py +++ b/src/fmu/sumo/explorer/objects/_document_collection.py @@ -231,7 +231,7 @@ async def _next_batch_async(self) -> List[Dict]: data = res.json() hits = data["hits"] - self._postprocess_batch_async(hits["hits"], pit) + await self._postprocess_batch_async(hits["hits"], pit) if self._pit is not None: self._new_pit_id = data["pit_id"]