From 6f8b064ec521e277e1028caafb8d4dc522987267 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 11 Nov 2021 15:26:07 +0000 Subject: Added a hard exception for when mount information can't be detected --- archinstall/lib/disk/helpers.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'archinstall/lib') 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: -- cgit v1.2.3-70-g09d2