Work around pyopenssl exception to shutdown (win32)

This commit is contained in:
j 2016-01-31 18:59:17 +05:30
parent 7380c9aab7
commit fe9e2c65bc

View file

@ -25,3 +25,8 @@ if len(sys.argv) > 1 and sys.argv[1] == 'server':
server.run()
else:
commands.main()
if sys.platform == 'win32':
# Work around pyopenssl exception to shutdown
def handle_exception(*args, **kwargs):
pass
sys.excepthook = handle_exception