summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
Diffstat (limited to 'text.py')
-rw-r--r--text.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/text.py b/text.py
index 6775ae02d..ae8ac2e6f 100644
--- a/text.py
+++ b/text.py
@@ -291,9 +291,11 @@ class InstallInterface:
def exceptionWindow(self, title, text):
try:
- floppyDevices = len(kudzu.probe(kudzu.CLASS_FLOPPY,
- kudzu.BUS_UNSPEC,
- kudzu.PROBE_ALL))
+ floppyDevices = 0
+ for dev in kudzu.probe(kudzu.CLASS_FLOPPY, kudzu.BUS_UNSPEC,
+ kudzu.PROBE_ALL):
+ if not dev.detached:
+ floppyDevices = floppyDevices + 1
except:
floppyDevices = 0
if floppyDevices > 0 or DEBUG: