Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-02-07 18:51:45 +0100
committerAnton Hvornum <anton@hvornum.se>2021-02-07 18:51:45 +0100
commita9d49a52eca85a471e79018fdc952190e2071e10 (patch)
treeab5711ec3ce2f9e00874a349519c9eac28b7cfa0 /archinstall/lib
parent9038fda9911f40ede813c5492f34b68411db65b8 (diff)
Corrected two variables.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 80e9c740..d999e626 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -129,10 +129,10 @@ class Partition():
mount_information = get_mount_info(self.path)
- if self.mountpoint != mount_information['target'] and mountpoint:
- raise DiskError(f"{self} was given a mountpoint but the actual mountpoint differs: {mount_information['target']}")
- if mount_information['fstype'] != self.filesystem and filesystem:
- raise DiskError(f"{self} was given a filesystem format, but a existing format was detected: {mount_information['fstype']}")
+ if self.mountpoint != mount_information.get('target', None) and mountpoint:
+ raise DiskError(f"{self} was given a mountpoint but the actual mountpoint differs: {mount_information.get('target', None)}")
+ if mount_information.get('fstype', None) != self.filesystem and filesystem:
+ raise DiskError(f"{self} was given a filesystem format, but a existing format was detected: {mount_information.get('fstype', None)}")
if (target := mount_information.get('target', None)):
self.mountpoint = target