diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | partIntfHelpers.py | 3 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-08-02 Peter Jones <pjones@redhat.com> + + * partIntfHellpers.py (doDeletePartitionByRequest): don't raise + an exception when somebody clicks delete on empty space; just + return 0 + 2006-08-01 Chris Lumens <clumens@redhat.com> * xsetup.py: Fix string concat traceback (#201047). diff --git a/partIntfHelpers.py b/partIntfHelpers.py index 46d36c8fa..a64c448e6 100644 --- a/partIntfHelpers.py +++ b/partIntfHelpers.py @@ -220,7 +220,8 @@ def doDeletePartitionByRequest(intf, requestlist, partition, if partition.type & parted.PARTITION_EXTENDED: requestlist.deleteAllLogicalPartitions(partition) else: - raise ValueError, "Deleting a non-existent partition" + #raise ValueError, "Deleting a non-existent partition" + return 0 del partition return 1 |