From 83e4f42ab8b45e401c1bac350c2927a8365b25a6 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 26 Jul 2020 06:03:24 +0100 Subject: [PATCH] Return None if channel has not been found within the cache --- settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.py b/settings.py index 9a6487a9..798ee165 100644 --- a/settings.py +++ b/settings.py @@ -88,7 +88,7 @@ def get_modlog_for_guild(guildid): channel = modlogs[guildid] if channel is not None: return channel - return Exception + return None # Before initialising the cache. Store the prefixes from the database within the cache