From 501e5b9452d71f5a35133f9c7cc7ad1867dae207 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Sun, 23 Sep 2018 13:40:09 -0500 Subject: [PATCH] Default to empty dict if there's no entry --- cogs/utils/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/utils/database.py b/cogs/utils/database.py index aa9431a..78638e3 100644 --- a/cogs/utils/database.py +++ b/cogs/utils/database.py @@ -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)