From 0cc84c81dd4a776aa37c8d1bcdcc3fa3af78d1e4 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 9 Feb 2017 20:16:45 +0200 Subject: wic: direct: don't catch ImagerError Don't transform ImagerError exception into warning. Let wic to catch it on the upper level. Signed-off-by: Ed Bartosh --- scripts/lib/wic/plugins/imager/direct.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'scripts') 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): -- cgit v1.2.3