mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +00:00
correct except error
This commit is contained in:
parent
b768dbf59d
commit
39b53dbfc7
1 changed files with 2 additions and 1 deletions
|
@ -51,8 +51,9 @@ class MyTCPServerHandler(SocketServer.BaseRequestHandler):
|
||||||
pass
|
pass
|
||||||
gfs.shutdown()
|
gfs.shutdown()
|
||||||
gfs.close()
|
gfs.close()
|
||||||
except RuntimeError, err:
|
except RuntimeError as err:
|
||||||
self.request.sendall(json.dumps({'return': 'error', 'message': err.message}))
|
self.request.sendall(json.dumps({'return': 'error', 'message': err.message}))
|
||||||
|
|
||||||
|
|
||||||
server = MyTCPServer((ADDRESS, PORT), MyTCPServerHandler)
|
server = MyTCPServer((ADDRESS, PORT), MyTCPServerHandler)
|
||||||
server.serve_forever()
|
server.serve_forever()
|
||||||
|
|
Loading…
Reference in a new issue