Fix very strange cache bug
This happened once and I have no idea why, but it shouldn't cause a crash.
This commit is contained in:
parent
77f03425ef
commit
548cb62ff2
1 changed files with 1 additions and 1 deletions
|
@ -115,4 +115,4 @@ proc getCachedRss*(key: string): Future[(string, string)] {.async.} =
|
||||||
res = await r.hgetall("rss:" & key)
|
res = await r.hgetall("rss:" & key)
|
||||||
|
|
||||||
if "rss" in res:
|
if "rss" in res:
|
||||||
result = (res["rss"], res["min"])
|
result = (res["rss"], res.getOrDefault("min"))
|
||||||
|
|
Loading…
Reference in a new issue