fix dump to dumps
This commit is contained in:
parent
1aa4db92ca
commit
94e61890ae
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user