Add a possible error that can be caught
This commit is contained in:
parent
0c25f4ab6f
commit
209e1522f1
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue