fix empty line send to redis via toRedis.py #1

Merged
alban merged 1 commits from lapin/LJ:master into master 2020-10-13 19:52:06 +00:00
Showing only changes of commit 45c263d3d2 - Show all commits

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: