From: Lars Wirzenius Date: Wed, 15 Jun 2011 14:39:57 +0000 (+0100) Subject: Actually clean up if something bad happens while we do stuff. X-Git-Url: https://git.siccegge.de//index.cgi?p=forks%2Fvmdebootstrap.git;a=commitdiff_plain;h=39a5154dfb8173800751e5ca6e938e63a3808b1e Actually clean up if something bad happens while we do stuff. --- 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: