From 209e1522f1e84e274acd80585d5cea42ff1591e8 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 15 Mar 2017 22:36:00 -0500 Subject: [PATCH] Add a possible error that can be caught --- cogs/utils/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/utils/utilities.py b/cogs/utils/utilities.py index f465d9f..d48e0e3 100644 --- a/cogs/utils/utilities.py +++ b/cogs/utils/utilities.py @@ -51,7 +51,7 @@ async def channel_is_nsfw(channel): try: return channel in server_settings['nsfw_channels'] - except (TypeError, IndexError): + except (TypeError, IndexError, KeyError): return False