diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-08-01 18:26:46 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-08-01 18:26:46 +0000 |
commit | f0c146608412ffa01e822c053129ae060f1a92b5 (patch) | |
tree | fc028e2c984e6e728bf4bbf4e307aa8118af8459 /autopart.py | |
parent | f475324e67eab06c8d291022c902ba995b8f0a18 (diff) | |
download | anaconda-f0c146608412ffa01e822c053129ae060f1a92b5.tar.gz anaconda-f0c146608412ffa01e822c053129ae060f1a92b5.tar.xz anaconda-f0c146608412ffa01e822c053129ae060f1a92b5.zip |
why yes, we should raise an error here so we get a nice dialog instead of a traceback (50620)
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/autopart.py b/autopart.py index e8494d170..198790942 100644 --- a/autopart.py +++ b/autopart.py @@ -88,8 +88,7 @@ def bestPartType(disk, request): numPrimary = len(get_primary_partitions(disk)) maxPrimary = disk.max_primary_partition_count if numPrimary == maxPrimary: - # raise an error? - return PARTITION_FAIL + raise PartitioningError, "Unable to create additional primary partitions on /dev/%s" % (disk.dev.path[5:]) if request.primary: return parted.PARTITION_PRIMARY if (numPrimary == (maxPrimary - 1)) and not disk.extended_partition: |