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()
try:
self.boot()
except (Exception, KeyboardInterrupt) as e:
except (Exception, KeyboardInterrupt):
self.shutdown()
raise e
except (Exception, KeyboardInterrupt) as e:
raise
except (Exception, KeyboardInterrupt):
self.destroy()
raise e
raise
def down(self):
self.shutdown()