]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: direct: don't catch ImagerError
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 9 Feb 2017 18:16:45 +0000 (20:16 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Feb 2017 04:06:34 +0000 (20:06 -0800)
Don't transform ImagerError exception into warning.
Let wic to catch it on the upper level.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
scripts/lib/wic/plugins/imager/direct.py

index a2bc4c414469454b68dcc7ede663588eea9cdafe..9bcccb3f487bc9fec2ee39215ce784eed86e4878 100644 (file)
@@ -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):