Preserve stacktrace when reraising in vbox instance up()

This commit is contained in:
Anders Ingemann 2015-01-19 01:21:30 +01:00
parent b4cd905977
commit f0402d6a9b

View file

@ -92,12 +92,12 @@ class VirtualBoxInstance(Instance):
self.create() self.create()
try: try:
self.boot() self.boot()
except (Exception, KeyboardInterrupt) as e: except (Exception, KeyboardInterrupt):
self.shutdown() self.shutdown()
raise e raise
except (Exception, KeyboardInterrupt) as e: except (Exception, KeyboardInterrupt):
self.destroy() self.destroy()
raise e raise
def down(self): def down(self):
self.shutdown() self.shutdown()