fix empty line send to redis via toRedis.py
This commit is contained in:
parent
4faf53168d
commit
45c263d3d2
1 changed files with 2 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ try:
|
||||||
line = line.replace("[",'(')
|
line = line.replace("[",'(')
|
||||||
line = line.replace("]",')')
|
line = line.replace("]",')')
|
||||||
line = "[{}]".format(line)
|
line = "[{}]".format(line)
|
||||||
|
if line == "[]":
|
||||||
|
continue
|
||||||
if r.set(key,line)==True:
|
if r.set(key,line)==True:
|
||||||
debug("exports::redis set("+str(key)+") to "+line)
|
debug("exports::redis set("+str(key)+") to "+line)
|
||||||
except EOFError:
|
except EOFError:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue