[fix] clitools toRedis should not accept empty input
This commit is contained in:
parent
18aaa1b625
commit
b2cc1b1ff5
@ -47,6 +47,7 @@ try:
|
|||||||
line = sys.stdin.readline()
|
line = sys.stdin.readline()
|
||||||
if line == "":
|
if line == "":
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
|
continue
|
||||||
line = line.rstrip('\n')
|
line = line.rstrip('\n')
|
||||||
line=line[1:-1]
|
line=line[1:-1]
|
||||||
line = line.replace("[",'(')
|
line = line.replace("[",'(')
|
||||||
|
Loading…
Reference in New Issue
Block a user