mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Catch GeneratorExit exception. Fixes #231.
This commit is contained in:
1 parent
b1b602db3b
commit
7b001e4d36
3 files changed
+4
-4
No files matched your search
@@ -130,7 +130,7 @@ class Dynamips(BaseManager):
|
||||
for future in done:
|
||||
try:
|
||||
future.result()
|
||||
except Exception as e:
|
||||
except (Exception, GeneratorExit) as e:
|
||||
log.error("Could not stop device hypervisor {}".format(e), exc_info=1)
|
||||
continue
|
||||
|
||||
@@ -154,7 +154,7 @@ class Dynamips(BaseManager):
|
||||
for future in done:
|
||||
try:
|
||||
future.result()
|
||||
except Exception as e:
|
||||
except (Exception, GeneratorExit) as e:
|
||||
log.error("Could not delete device {}".format(e), exc_info=1)
|
||||
|
||||
@asyncio.coroutine
|
||||
|
||||
Reference in new issue
Block a user