mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-29 23:54:11 +00:00
Fix WinError 0 handling
This commit is contained in:
parent
128e494134
commit
4c339eade1
@ -261,7 +261,7 @@ def run():
|
||||
server.run()
|
||||
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:
|
||||
if not sys.platform.startswith("win") or not e.winerror == 0:
|
||||
raise
|
||||
except Exception as e:
|
||||
log.critical("Critical error while running the server: {}".format(e), exc_info=1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user