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
|
@param index: 0 for most recent
|
||||||
"""
|
"""
|
||||||
key = self.redis.lindex(key, index)
|
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):
|
def log(self, msg):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user