From 110720f278e789a328b7fbf3517711f3f0825f58 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Mon, 28 Jan 2019 00:29:59 -0600 Subject: [PATCH] Ensure it's NEVER None, even if None is in the dict --- utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/config.py b/utils/config.py index ef02ab3..685a33a 100644 --- a/utils/config.py +++ b/utils/config.py @@ -97,4 +97,4 @@ db_opts = {'host': db_host, 'database': db_name, 'port': db_port, 'user': db_use def command_prefix(bot, message): if not message.guild: return default_prefix - return bot.cache.prefixes.get(message.guild.id, default_prefix) + return bot.cache.prefixes.get(message.guild.id) or default_prefix