summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugin.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-14 23:47:06 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:17 +0000
commitaf17aa91b32421100d8898a7c95049068e8e0e26 (patch)
treed322e68977a5626ad04ac119bc565b829e02f530 /scripts/lib/wic/plugin.py
parent8da175607c0d3434428a3bf4ee1549919b698709 (diff)
downloadpoky-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.py4
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
19import sys 19import sys
20import logging 20import logging
21 21
22from wic.errors import CreatorError 22from wic.errors import WicError
23from wic import pluginbase 23from wic import pluginbase
24from wic.utils.misc import get_bitbake_var 24from 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