From 28912654099266d91c743d31e8c1ea80aee1eab6 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 16 Nov 2021 15:17:42 +0000 Subject: Safe dictionary retrieval --- archinstall/lib/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall') diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index df0ddcdb..40f6410b 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -175,7 +175,7 @@ class Installer: for mountpoint in sorted(mountpoints.keys()): log(f"Mounting {mountpoint} to {self.target}{mountpoint}", level=logging.INFO) - if mountpoints[mountpoint]['encrypted']: + if mountpoints[mountpoint].get('encrypted', False): loopdev = storage.get('ENC_IDENTIFIER', 'ai') + 'loop' if not (password := mountpoints[mountpoint].get('!password', None)): raise RequirementError(f"Missing mountpoint {mountpoint} encryption password in layout: {mountpoints[mountpoint]}") -- cgit v1.2.3-54-g00ecf