From 39b53dbfc7c88bb29b8127ad042f8d878b3a4aec Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 24 Jan 2020 10:07:45 +0300 Subject: [PATCH] correct except error --- conf/daemon/gstfsd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/daemon/gstfsd b/conf/daemon/gstfsd index 2e68312..1851770 100644 --- a/conf/daemon/gstfsd +++ b/conf/daemon/gstfsd @@ -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()