summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/imager
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins/imager')
-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):
290 290
291 def cleanup(self): 291 def cleanup(self):
292 if self._image: 292 if self._image:
293 try: 293 self._image.cleanup()
294 self._image.cleanup()
295 except ImageError as err:
296 msger.warning("%s" % err)
297 294
298 # Move results to the output dir 295 # Move results to the output dir
299 if not os.path.exists(self.outdir): 296 if not os.path.exists(self.outdir):