Fix error handling in qvm-backup-restore

This commit is contained in:
Marek Marczykowski 2011-03-24 21:35:46 -04:00
parent 4723b9e2ef
commit 8bdbed7bb8

View File

@ -368,14 +368,14 @@ def main():
vm.verify_files()
except QubesException as err:
print "ERROR: {0}".format(err)
print "*** Skiping VM: {0}".vm.name
print "*** Skiping VM: {0}".format(vm.name)
host_collection.pop(vm.qid)
try:
vm.add_to_xen_storage()
except (IOError, OSError) as err:
print "ERROR: {0}".format(err)
print "*** Skiping VM: {0}".vm.name
print "*** Skiping VM: {0}".format(vm.name)
host_collection.pop(vm.qid)