From 1fbfb46bd777e126cdda66db75509a89022d56d7 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 2 May 2007 21:37:04 +0000 Subject: 2007-05-02 Jeremy Katz * textw/partition_text.py (PartitionTypeWindow.__call__): Don't traceback if there aren't disks (#238695) --- textw/partition_text.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'textw') 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) -- cgit