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:
Zed 2020-06-02 22:15:04 +02:00
parent 77f03425ef
commit 548cb62ff2
1 changed files with 1 additions and 1 deletions

View File

@ -115,4 +115,4 @@ proc getCachedRss*(key: string): Future[(string, string)] {.async.} =
res = await r.hgetall("rss:" & key)
if "rss" in res:
result = (res["rss"], res["min"])
result = (res["rss"], res.getOrDefault("min"))