fix empty line send to redis via toRedis.py #1
@ -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