From 992c6cb453705f98f5f75fad29ce230f6cb0677c Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Wed, 12 Sep 2012 10:54:09 +0800 Subject: [PATCH] avoid traceback when loopback is NoneType Signed-off-by: Gui Chen --- mic/imager/loop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mic/imager/loop.py b/mic/imager/loop.py index 91b3e9b..27dd677 100644 --- a/mic/imager/loop.py +++ b/mic/imager/loop.py @@ -351,7 +351,10 @@ class LoopImageCreator(BaseImageCreator): def _unmount_instroot(self): for item in reversed(self._instloops): - item['loop'].cleanup() + try: + item['loop'].cleanup() + except: + pass def _stage_final_image(self): -- 2.7.4