From a1b2d3dbf716bb56bcbd21cb12dc280ee7d3aa16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85dne=20Jacobsen?= Date: Mon, 16 Oct 2023 16:24:30 +0200 Subject: [PATCH] use reponse.text instead of response.content.decode --- src/fmu/sumo/explorer/objects/cube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fmu/sumo/explorer/objects/cube.py b/src/fmu/sumo/explorer/objects/cube.py index e3fb6822..021d794e 100644 --- a/src/fmu/sumo/explorer/objects/cube.py +++ b/src/fmu/sumo/explorer/objects/cube.py @@ -35,7 +35,7 @@ def _populate_url(self): self._url = res.get("baseuri") + self.uuid self._sas = res.get("auth") except Exception: - self._url = res.content.decode("UTF-8") + self._url = res.text async def _populate_url_async(self): res = await self._sumo.get_async( @@ -46,7 +46,7 @@ async def _populate_url_async(self): self._url = res.get("baseuri") + self.uuid self._sas = res.get("auth") except Exception: - self._url = res.content.decode("UTF-8") + self._url = res.text @property def url(self) -> str: