1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Added a possible exception

This commit is contained in:
phxntxm 2017-03-08 02:19:47 -06:00
parent d8a053eb67
commit 38268f4886

View file

@ -62,7 +62,7 @@ class StatsUpdate:
channel_id = server_settings['notification_channel'] or member.guild.id
else:
return
except (IndexError, TypeError):
except (IndexError, TypeError, KeyError):
return
channel = guild.get_channel(int(channel_id))
@ -78,7 +78,7 @@ class StatsUpdate:
channel_id = server_settings['notification_channel'] or member.guild.id
else:
return
except (IndexError, TypeError):
except (IndexError, TypeError, KeyError):
return
channel = guild.get_channel(int(channel_id))