Skip to content

Commit

Permalink
use reponse.text instead of response.content.decode
Browse files Browse the repository at this point in the history
  • Loading branch information
adnejacobsen committed Oct 16, 2023
1 parent d3e48a2 commit a1b2d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fmu/sumo/explorer/objects/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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:
Expand Down

0 comments on commit a1b2d3d

Please sign in to comment.