From bc8d4ea2346b09adc641ae51648ac67df939d27a Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Tue, 26 Sep 2023 18:57:50 +1000 Subject: Fix 2103 (#2114) Co-authored-by: Daniel Girtler --- archinstall/lib/disk/device_handler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'archinstall/lib/disk') diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py index 4cb35c03..8af33fde 100644 --- a/archinstall/lib/disk/device_handler.py +++ b/archinstall/lib/disk/device_handler.py @@ -49,12 +49,11 @@ class DeviceHandler(object): try: loop_devices = SysCommand(['losetup', '-a']) - except SysCallError as err: - debug(f'Failed to get loop devices: {err}') - else: for ld_info in str(loop_devices).splitlines(): loop_device = getDevice(ld_info.split(':', maxsplit=1)[0]) devices.append(loop_device) + except Exception as err: + debug(f'Failed to get loop devices: {err}') for device in devices: if get_lsblk_info(device.path).type == 'rom': -- cgit v1.2.3-70-g09d2