summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--isys/isys.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 9cdd587d2..f8d591131 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -259,6 +259,8 @@ def driveDict(klassArg):
devs = kudzu.probe(kudzu.CLASS_HD | kudzu.CLASS_CDROM | kudzu.CLASS_FLOPPY,
kudzu.BUS_UNSPEC, kudzu.PROBE_SAFE)
for dev in devs:
+ if dev.device is None: # none devices make no sense
+ continue
if dev.deviceclass == classMap[klassArg]:
ret[dev.device] = dev.desc