mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
wic: raise WicError instead of ImageError and CreatorError
There is no need to raise special exceptions. Raising WicError should be enough. (From OE-Core rev: b952076cc9f458c3d5eb03e12dc3ec316a44804c) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8da175607c
commit
af17aa91b3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user