mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
Do not crash when closing a project if VirtualBox is not accessible
Fix #164
This commit is contained in:
parent
e75fbc9d73
commit
b9bc73fd01
@ -122,7 +122,12 @@ class VirtualBox(BaseManager):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
hdds = []
|
hdds = []
|
||||||
|
try:
|
||||||
properties = yield from self.execute("list", ["hdds"])
|
properties = yield from self.execute("list", ["hdds"])
|
||||||
|
# If VirtualBox is not available we have no inaccessible hdd
|
||||||
|
except VirtualBoxError:
|
||||||
|
return hdds
|
||||||
|
|
||||||
flag_inaccessible = False
|
flag_inaccessible = False
|
||||||
for prop in properties:
|
for prop in properties:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user