]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Actually clean up if something bad happens while we do stuff.
authorLars Wirzenius <liw@liw.fi>
Wed, 15 Jun 2011 14:39:57 +0000 (15:39 +0100)
committerLars Wirzenius <liw@liw.fi>
Wed, 15 Jun 2011 14:39:57 +0000 (15:39 +0100)
vmdebootstrap

index 4bf8cfded88a287bc341fb77d4a0264a0f1aa9a2..67e5a409a87334f20be73884209e5a7e9de304e2 100755 (executable)
@@ -82,7 +82,8 @@ class VmDebootstrap(cliapp.Application):
             self.setup_networking(rootdir)
             self.install_extlinux(rootdev, rootdir)
             self.customize(rootdir)
-        except:
+        except BaseException, e:
+            self.message('EEEK! Something bad happened...')
             self.cleanup()
             raise
         else: