Skip empty devices
This commit is contained in:
parent
a6a774beae
commit
4465caa9fd
1 changed files with 4 additions and 0 deletions
|
|
@ -373,6 +373,10 @@ def get_disks_linux() -> list[Disk]:
|
|||
if disk_obj.raw_details.get('type', '???') != 'disk':
|
||||
continue
|
||||
|
||||
# Skip empty devices (usually card readers)
|
||||
if disk_obj.size <= 0:
|
||||
continue
|
||||
|
||||
# Add disk
|
||||
disks.append(disk_obj)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue