summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-09 20:16:45 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-15 20:06:45 -0800
commit870171a205463e79970c0efa5928c7e84057a7bf (patch)
treee33f75fcdb2853196f8ba29b1fb758adb5b60e5d
parent417e5fbe2bde800d5ea9647f48034979dc4cd2c3 (diff)
downloadopenembedded-core-contrib-870171a205463e79970c0efa5928c7e84057a7bf.tar.gz
openembedded-core-contrib-870171a205463e79970c0efa5928c7e84057a7bf.tar.bz2
openembedded-core-contrib-870171a205463e79970c0efa5928c7e84057a7bf.zip
wic: direct: don't catch ImagerError
Don't transform ImagerError exception into warning. Let wic to catch it on the upper level. (From OE-Core rev: 0cc84c81dd4a776aa37c8d1bcdcc3fa3af78d1e4) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/wic/plugins/imager/direct.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index a2bc4c4144..9bcccb3f48 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -290,10 +290,7 @@ class DirectPlugin(ImagerPlugin):
def cleanup(self):
if self._image:
- try:
- self._image.cleanup()
- except ImageError as err:
- msger.warning("%s" % err)
+ self._image.cleanup()
# Move results to the output dir
if not os.path.exists(self.outdir):