From 45c263d3d259630cd9882db845b64fc9cb92aa69 Mon Sep 17 00:00:00 2001 From: lapin Date: Sat, 10 Oct 2020 01:40:46 +0200 Subject: [PATCH] fix empty line send to redis via toRedis.py --- clitools/exports/toRedis.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clitools/exports/toRedis.py b/clitools/exports/toRedis.py index b98f2eb..9164694 100755 --- a/clitools/exports/toRedis.py +++ b/clitools/exports/toRedis.py @@ -52,6 +52,8 @@ try: line = line.replace("[",'(') line = line.replace("]",')') line = "[{}]".format(line) + if line == "[]": + continue if r.set(key,line)==True: debug("exports::redis set("+str(key)+") to "+line) except EOFError: