mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-23 22:55:23 +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
|
||||
gfs.shutdown()
|
||||
gfs.close()
|
||||
except RuntimeError, err:
|
||||
except RuntimeError as err:
|
||||
self.request.sendall(json.dumps({'return': 'error', 'message': err.message}))
|
||||
|
||||
|
||||
server = MyTCPServer((ADDRESS, PORT), MyTCPServerHandler)
|
||||
server.serve_forever()
|
||||
|
|
Loading…
Reference in a new issue