소켓파일 없을 때 에러처리 추가

This commit is contained in:
wonipapa 2017-02-21 14:42:59 +09:00 committed by GitHub
parent 653f32d25f
commit e2d6d69c0f

View File

@ -530,7 +530,7 @@ elif args.socket:
sock.connect(args.socket)
sockfile = sock.makefile('w+')
sys.stdout = sockfile
except socket.error
except socket.error:
printError("xmltv.sock 파일을 찾을 수 없습니다.")
sys.exit()