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:
Diffstat (limited to 'archinstall/lib/disk')
-rw-r--r--archinstall/lib/disk/device_handler.py5
1 files changed, 2 insertions, 3 deletions
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':