From 7a3e7afe33cd2957272bb2b2a2d45eeb5362fc05 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 8 Mar 2017 00:32:55 -0600 Subject: [PATCH] Don't convert if we're given a dict, aka using get --- cogs/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/utils/config.py b/cogs/utils/config.py index 2a544d6..60f9c0c 100644 --- a/cogs/utils/config.py +++ b/cogs/utils/config.py @@ -201,7 +201,7 @@ async def get_content(table, key=None): cursor = await r.table(table).run(conn) if cursor is None: content = None - else: + elif type(cursor) is not dict: content = await _convert_to_list(cursor) if len(content) == 0: content = None