Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-11 15:26:07 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-11 15:26:07 +0000
commit6f8b064ec521e277e1028caafb8d4dc522987267 (patch)
treec8d46d46bf78e3d09198808a06a77dac1d002b99 /archinstall/lib/disk
parent91887bf0b3efcf4f94070d14be1f97c5842a0e6b (diff)
Added a hard exception for when mount information can't be detected
Diffstat (limited to 'archinstall/lib/disk')
-rw-r--r--archinstall/lib/disk/helpers.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/archinstall/lib/disk/helpers.py b/archinstall/lib/disk/helpers.py
index 8210895f..e15e69b2 100644
--- a/archinstall/lib/disk/helpers.py
+++ b/archinstall/lib/disk/helpers.py
@@ -132,11 +132,7 @@ def get_mount_info(path :Union[pathlib.Path, str], traverse=False, return_real_p
break
if not output:
- log(f"Could not get mount information for device path {path}: {output}", fg="yellow", level=logging.WARNING)
- if return_real_path:
- return {}, None
- else:
- return {}
+ raise DiskError(f"Could not get mount information for device path {path}")
output = json.loads(output)
if 'filesystems' in output: