1
0
Fork 0
mirror of synced 2024-05-07 06:02:24 +12:00

Default to empty dict if there's no entry

This commit is contained in:
phxntxm 2018-09-23 13:40:09 -05:00
parent e5b5d30553
commit 501e5b9452

View file

@ -51,7 +51,7 @@ class Cache:
"""This simulates the database call, to make it easier to get the data"""
value = self.values
if key:
value = value.get(str(key))
value = value.get(str(key), {})
if pluck:
value = value.get(pluck)