Skip to content

Commit 63566be

Browse files
committed
Convert bytes to str
1 parent fd9f289 commit 63566be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

archinstall/lib/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def _fetch_from_url(self, url: str) -> str:
470470
try:
471471
req = Request(url, headers={'User-Agent': 'ArchInstall'})
472472
with urlopen(req) as resp:
473-
return resp.read()
473+
return resp.read().decode('utf-8')
474474
except urllib.error.HTTPError as err:
475475
error(f"Could not fetch JSON from {url}: {err}")
476476
else:

0 commit comments

Comments
 (0)