diff options
author | Erik Troan <ewt@redhat.com> | 2002-01-25 14:29:55 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2002-01-25 14:29:55 +0000 |
commit | 737b723fb30875336758e89b2b46b1503a3e6e4a (patch) | |
tree | 981e13ff1804c9cfea513f96230cf3abbfcc76a9 /textw/mouse_text.py | |
parent | 7533995c5f30b247b3fa0bd832aaa0281b4722c8 (diff) | |
download | anaconda-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.py | 2 |
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() |