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 23:18:17 +0000 |
commit | af17aa91b32421100d8898a7c95049068e8e0e26 (patch) | |
tree | d322e68977a5626ad04ac119bc565b829e02f530 /scripts/lib/wic/plugin.py | |
parent | 8da175607c0d3434428a3bf4ee1549919b698709 (diff) | |
download | poky-af17aa91b32421100d8898a7c95049068e8e0e26.tar.gz |
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>
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 | |||
19 | import sys | 19 | import sys |
20 | import logging | 20 | import logging |
21 | 21 | ||
22 | from wic.errors import CreatorError | 22 | from wic.errors import WicError |
23 | from wic import pluginbase | 23 | from wic import pluginbase |
24 | from wic.utils.misc import get_bitbake_var | 24 | from wic.utils.misc import get_bitbake_var |
25 | 25 | ||
@@ -110,7 +110,7 @@ class PluginMgr(): | |||
110 | """ the return value is dict of name:class pairs """ | 110 | """ the return value is dict of name:class pairs """ |
111 | 111 | ||
112 | if ptype not in PLUGIN_TYPES: | 112 | if ptype not in PLUGIN_TYPES: |
113 | raise CreatorError('%s is not valid plugin type' % ptype) | 113 | raise WicError('%s is not valid plugin type' % ptype) |
114 | 114 | ||
115 | plugins_dir = self._build_plugin_dir_list(self.plugin_dir, ptype) | 115 | plugins_dir = self._build_plugin_dir_list(self.plugin_dir, ptype) |
116 | 116 | ||