1
0
Fork 0
mirror of synced 2024-05-20 12:32:26 +12:00

Add a possible error that can be caught

This commit is contained in:
phxntxm 2017-03-15 22:36:00 -05:00
parent 0c25f4ab6f
commit 209e1522f1

View file

@ -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