diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-14 23:47:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 10:42:30 +0000 |
commit | b952076cc9f458c3d5eb03e12dc3ec316a44804c (patch) | |
tree | 40502b7574f381e76091416fc876eb9003a25977 /scripts/lib/wic/plugin.py | |
parent | 92e8c81c941597eb2b4b61d5c28833e4826888f8 (diff) | |
download | openembedded-core-b952076cc9f458c3d5eb03e12dc3ec316a44804c.tar.gz openembedded-core-b952076cc9f458c3d5eb03e12dc3ec316a44804c.tar.bz2 openembedded-core-b952076cc9f458c3d5eb03e12dc3ec316a44804c.zip |
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 <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic/plugin.py')
-rw-r--r-- | scripts/lib/wic/plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugin.py b/scripts/lib/wic/plugin.py index 31311adb55..0e98da5c7a 100644 --- a/scripts/lib/wic/plugin.py +++ b/scripts/lib/wic/plugin.py @@ -19,7 +19,7 @@ import os import sys import logging -from wic.errors import CreatorError +from wic.errors import WicError from wic import pluginbase from wic.utils.misc import get_bitbake_var @@ -110,7 +110,7 @@ class PluginMgr(): """ the return value is dict of name:class pairs """ if ptype not in PLUGIN_TYPES: - raise CreatorError('%s is not valid plugin type' % ptype) + raise WicError('%s is not valid plugin type' % ptype) plugins_dir = self._build_plugin_dir_list(self.plugin_dir, ptype) |