From b952076cc9f458c3d5eb03e12dc3ec316a44804c Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 14 Feb 2017 23:47:06 +0200 Subject: wic: raise WicError instead of ImageError and CreatorError There is no need to raise special exceptions. Raising WicError should be enough. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/imager/direct.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/lib/wic/plugins/imager/direct.py') diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index 9c8a2304a7..5b20ca9c5b 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py @@ -32,7 +32,7 @@ import uuid from time import strftime -from wic.errors import ImageError, WicError +from wic.errors import WicError from wic.filemap import sparse_copy from wic.ksparser import KickStart, KickStartError from wic.plugin import pluginmgr @@ -355,8 +355,8 @@ class PartitionedImage(): # The --part-type can also be implemented for MBR partitions, # in which case it would map to the 1-byte "partition type" # filed at offset 3 of the partition entry. - raise ImageError("setting custom partition type is not " \ - "implemented for msdos partitions") + raise WicError("setting custom partition type is not " \ + "implemented for msdos partitions") # Get the disk where the partition is located self.numpart += 1 -- cgit 1.2.3-korg