From 3863691b49ebf296eafbb1bf47487d9366dbb671 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 11 Apr 2019 20:07:32 +0200 Subject: Forgot to decode the bytes data --- archinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index 11b2e025..cc97328a 100644 --- a/archinstall.py +++ b/archinstall.py @@ -236,7 +236,7 @@ def grab_partitions(dev): ## TODO: Replace o = sys_command() with code, o = sys_command() ## and make sys_command() return the exit-code, way safer than checking output strings :P return {} - r = json.loads(o) + r = json.loads(o.decode('UTF-8')) if len(r['blockdevices']) and 'children' in r['blockdevices'][0]: for part in r['blockdevices'][0]['children']: parts[part['name'][len(drive_name):]] = { -- cgit v1.2.3-70-g09d2