Default to empty dict if there's no entry
This commit is contained in:
parent
e5b5d30553
commit
501e5b9452
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue