Work around pyopenssl exception to shutdown (win32)
This commit is contained in:
parent
7380c9aab7
commit
fe9e2c65bc
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue