Skip rom devices (#1906)

This commit is contained in:
codefiles 2023-06-29 09:33:14 -04:00 committed by GitHub
parent 58bccccd5d
commit ffb9366280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ class DeviceHandler(object):
block_devices = {}
for device in getAllDevices():
if get_lsblk_info(device.path).type == 'rom':
continue
try:
disk = Disk(device)
except DiskLabelException as err: