mirror of
https://github.com/GNS3/gns3-server
synced 2025-02-02 11:21:10 +00:00
Fix WinError 0 handling
This commit is contained in:
parent
128e494134
commit
4c339eade1
@ -261,7 +261,7 @@ def run():
|
|||||||
server.run()
|
server.run()
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
# This is to ignore OSError: [WinError 0] The operation completed successfully exception on Windows.
|
# 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:
|
if not sys.platform.startswith("win") or not e.winerror == 0:
|
||||||
raise
|
raise
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.critical("Critical error while running the server: {}".format(e), exc_info=1)
|
log.critical("Critical error while running the server: {}".format(e), exc_info=1)
|
||||||
|
Loading…
Reference in New Issue
Block a user