summaryrefslogtreecommitdiffstats
path: root/textw/partition_text.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-05-02 21:37:04 +0000
committerJeremy Katz <katzj@redhat.com>2007-05-02 21:37:04 +0000
commit1fbfb46bd777e126cdda66db75509a89022d56d7 (patch)
tree1e046310d5c553e0c686b0be47b9aa468a5e4315 /textw/partition_text.py
parentf4d7b459a0dd83384420966b7e6ca1abf9ef4352 (diff)
downloadanaconda-1fbfb46bd777e126cdda66db75509a89022d56d7.tar.gz
anaconda-1fbfb46bd777e126cdda66db75509a89022d56d7.tar.xz
anaconda-1fbfb46bd777e126cdda66db75509a89022d56d7.zip
2007-05-02 Jeremy Katz <katzj@redhat.com>
* textw/partition_text.py (PartitionTypeWindow.__call__): Don't traceback if there aren't disks (#238695)
Diffstat (limited to 'textw/partition_text.py')
-rw-r--r--textw/partition_text.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index fded1a191..f3c822197 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -1611,7 +1611,10 @@ class PartitionTypeWindow:
rc = g.run()
- sel = [self.drivelist.getSelection()[0].split()[0]]
+ if len(self.drivelist.getSelection()) > 0:
+ sel = [self.drivelist.getSelection()[0].split()[0]]
+ else:
+ sel = []
partmethod_ans = typebox.current()
res = bb.buttonPressed(rc)