From b3d41551140129a8a3455a533b5a5e30b410e537 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 18 Nov 2021 13:45:21 +0000 Subject: Swapped .get() statement for a verification. This ensures Partition().uuid doesn't immediately return None --- archinstall/lib/disk/partition.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/disk/partition.py b/archinstall/lib/disk/partition.py index 90e1aeea..2469a390 100644 --- a/archinstall/lib/disk/partition.py +++ b/archinstall/lib/disk/partition.py @@ -153,7 +153,8 @@ class Partition: partuuid_struct = SysCommand(f'lsblk -J -o+PARTUUID {self.path}') if partuuid_struct.exit_code == 0: if partition_information := next(iter(json.loads(partuuid_struct.decode('UTF-8'))['blockdevices']), None): - return partition_information.get('partuuid', None) + if (partuuid := partition_information.get('partuuid', None)): + return partuuid time.sleep(storage['DISK_TIMEOUTS']) -- cgit v1.2.3-70-g09d2