Do not crash when closing a project if VirtualBox is not accessible

Fix #164
This commit is contained in:
Julien Duponchelle committed 2015-04-29 14:24:27 +02:00
1 parent e75fbc9d73
commit b9bc73fd01
1 file changed
+6 -1
+6 -1
View File
@@ -122,7 +122,12 @@ class VirtualBox(BaseManager):
"""
hdds = []
properties = yield from self.execute("list", ["hdds"])
try:
properties = yield from self.execute("list", ["hdds"])
# If VirtualBox is not available we have no inaccessible hdd
except VirtualBoxError:
return hdds
flag_inaccessible = False
for prop in properties:
try: