From 39a5154dfb8173800751e5ca6e938e63a3808b1e Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 15 Jun 2011 15:39:57 +0100 Subject: [PATCH] Actually clean up if something bad happens while we do stuff. --- vmdebootstrap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmdebootstrap b/vmdebootstrap index 4bf8cfd..67e5a40 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -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: -- 2.39.2