fix dump to dumps

This commit is contained in:
Marco Zeisler 2021-06-11 16:46:42 +02:00
parent 1aa4db92ca
commit 94e61890ae

View File

@ -45,7 +45,7 @@ class EventLogger:
@param index: 0 for most recent
"""
key = self.redis.lindex(key, index)
return key.decode() if key else json.dump("")
return key.decode() if key else json.dumps("")
def log(self, msg):
try: