mirror of
https://github.com/GNS3/gns3-server
synced 2025-02-20 03:52:00 +00:00
Ignore the "OSError: [WinError 0] The operation completed successfully" exception in Windows.
This commit is contained in:
parent
c6dbf296cf
commit
343e007809
@ -225,6 +225,11 @@ class Server:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
self._loop.run_forever()
|
self._loop.run_forever()
|
||||||
|
except OSError as e:
|
||||||
|
# This is to ignore OSError: [WinError 0] The operation completed successfully
|
||||||
|
# exception on Windows.
|
||||||
|
if not sys.platform.startswith("win") and not e.winerror == 0:
|
||||||
|
raise
|
||||||
except TypeError as e:
|
except TypeError as e:
|
||||||
# This is to ignore an asyncio.windows_events exception
|
# This is to ignore an asyncio.windows_events exception
|
||||||
# on Windows when the process gets the SIGBREAK signal
|
# on Windows when the process gets the SIGBREAK signal
|
||||||
|
Loading…
Reference in New Issue
Block a user