mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-19 12:57:56 +00:00
Catch GeneratorExit exception when trying to create a Ghost IOS image.
This commit is contained in:
parent
7c1dd75ad7
commit
bb69f02da6
@ -159,7 +159,10 @@ class DynamipsVMHandler:
|
||||
|
||||
dynamips_manager = Dynamips.instance()
|
||||
vm = dynamips_manager.get_vm(request.match_info["vm_id"], project_id=request.match_info["project_id"])
|
||||
try:
|
||||
yield from dynamips_manager.ghost_ios_support(vm)
|
||||
except GeneratorExit:
|
||||
pass
|
||||
yield from vm.start()
|
||||
response.set_status(204)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user