From cac2c561c8f1ce23277765bcb43cd6421129d8a1 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Sat, 4 Jul 2020 15:06:05 +0200 Subject: [PATCH] fix bug --- bot.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 41ced27..985fd32 100644 --- a/bot.py +++ b/bot.py @@ -27,7 +27,7 @@ log = logging.getLogger("atos") #### Infos -version = "5.23" +version = "5.24" author = "Wonderfall" name = "A.T.O.S." @@ -637,8 +637,11 @@ async def end_check_in(): pass for inscrit in list(participants): - if participants[inscrit]["checked_in"] == False: - await desinscrire(guild.get_member(inscrit)) + try: + if participants[inscrit]["checked_in"] == False: + await desinscrire(guild.get_member(inscrit)) + except KeyError: + pass await bot.get_channel(inscriptions_channel_id).send(":information_source: **Les absents du check-in ont été retirés** : " "des places sont peut-être libérées pour des inscriptions de dernière minute.\n")