forked from protonphoton/LJ
fix empty line send to redis via toRedis.py
This commit is contained in:
parent
4faf53168d
commit
45c263d3d2
@ -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…
Reference in New Issue
Block a user