From 259aaa488428aa5647d27ebb8e4678829e793dc2 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 10 Aug 2022 12:57:32 +0200 Subject: Fixing a list access issue (#1416) --- archinstall/lib/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall/lib') diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index a0bcc2a6..798801aa 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -219,7 +219,7 @@ class Installer: """ if partition.get("mountpoint") is None: if (sub_list := partition.get("btrfs",{}).get('subvolumes',{})): - for mountpoint in [sub_list[subvolume] if isinstance(sub_list[subvolume],str) else sub_list[subvolume].get("mountpoint") for subvolume in sub_list if sub_list[subvolume]]: + for mountpoint in [sub_list[subvolume].get("mountpoint") if isinstance(subvolume, dict) else subvolume.mountpoint for subvolume in sub_list]: if mountpoint == '/': return True return False -- cgit v1.2.3-70-g09d2