fix empty line send to redis via toRedis.py

This commit is contained in:
lapin 2020-10-10 01:40:46 +02:00
parent 4faf53168d
commit 45c263d3d2

View File

@ -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: