summaryrefslogtreecommitdiffstats
path: root/storage/formats/disklabel.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-09-15 14:24:48 -0500
committerDavid Lehman <dlehman@redhat.com>2009-10-01 08:59:11 -0500
commitf262fb22f0b60450bd3ae5ab189b82c33994919a (patch)
tree64fd616dae775f6ce9b19aa18b9282438f7db9e3 /storage/formats/disklabel.py
parent5e7aa5f4d355855856a0d933e4f99ed1614f7cf4 (diff)
downloadanaconda-f262fb22f0b60450bd3ae5ab189b82c33994919a.tar.gz
anaconda-f262fb22f0b60450bd3ae5ab189b82c33994919a.tar.xz
anaconda-f262fb22f0b60450bd3ae5ab189b82c33994919a.zip
Create and use DiskLabelCommitError for failure to commit.
Diffstat (limited to 'storage/formats/disklabel.py')
-rw-r--r--storage/formats/disklabel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/formats/disklabel.py b/storage/formats/disklabel.py
index 192f1da9a..944f535bb 100644
--- a/storage/formats/disklabel.py
+++ b/storage/formats/disklabel.py
@@ -200,7 +200,7 @@ class DiskLabel(DeviceFormat):
try:
self.partedDisk.commit()
except parted.DiskException as msg:
- raise DeviceFormatError(msg)
+ raise DiskLabelCommitError(msg)
else:
udev_settle()
@@ -209,7 +209,7 @@ class DiskLabel(DeviceFormat):
try:
self.partedDisk.commitToDevice()
except parted.DiskException as msg:
- raise DeviceFormatError(msg)
+ raise DiskLabelCommitError(msg)
def addPartition(self, *args, **kwargs):
partition = kwargs.get("partition", None)