Convert bytes to str (#3457)

This commit is contained in:
Daniel Girtler 2025-05-12 21:07:36 +10:00 committed by GitHub
parent fd9f2893e6
commit e18c00c4d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ class ArchConfigHandler:
try:
req = Request(url, headers={'User-Agent': 'ArchInstall'})
with urlopen(req) as resp:
return resp.read()
return resp.read().decode('utf-8')
except urllib.error.HTTPError as err:
error(f"Could not fetch JSON from {url}: {err}")
else: