summaryrefslogtreecommitdiffstats
path: root/textw/mouse_text.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2002-01-25 14:29:55 +0000
committerErik Troan <ewt@redhat.com>2002-01-25 14:29:55 +0000
commit737b723fb30875336758e89b2b46b1503a3e6e4a (patch)
tree981e13ff1804c9cfea513f96230cf3abbfcc76a9 /textw/mouse_text.py
parent7533995c5f30b247b3fa0bd832aaa0281b4722c8 (diff)
downloadanaconda-737b723fb30875336758e89b2b46b1503a3e6e4a.tar.gz
anaconda-737b723fb30875336758e89b2b46b1503a3e6e4a.tar.xz
anaconda-737b723fb30875336758e89b2b46b1503a3e6e4a.zip
doesn't crash when no mouse is detected (probably still isn't quite right
however)
Diffstat (limited to 'textw/mouse_text.py')
-rw-r--r--textw/mouse_text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/textw/mouse_text.py b/textw/mouse_text.py
index 97280324b..7467596da 100644
--- a/textw/mouse_text.py
+++ b/textw/mouse_text.py
@@ -25,7 +25,7 @@ class MouseDeviceWindow:
i = 0
default = 0
mousedev = mouse.getDevice()
- if (mousedev[0:4] != "ttyS"): return INSTALL_NOOP
+ if (not mousedev or mousedev[0:4] != "ttyS"): return INSTALL_NOOP
l = choices.keys()
l.sort()