From 343e007809a1f1915407fb1d4135122b94027bde Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 16 Apr 2015 20:17:06 -0600 Subject: [PATCH] Ignore the "OSError: [WinError 0] The operation completed successfully" exception in Windows. --- gns3server/server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gns3server/server.py b/gns3server/server.py index dca8ff29..0dd5d641 100644 --- a/gns3server/server.py +++ b/gns3server/server.py @@ -225,6 +225,11 @@ class Server: try: 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: # This is to ignore an asyncio.windows_events exception # on Windows when the process gets the SIGBREAK signal