Skip to content
This repository was archived by the owner on Oct 18, 2020. It is now read-only.

Commit cac2c56

Browse files
committed
fix bug
1 parent e991b83 commit cac2c56

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bot.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
log = logging.getLogger("atos")
2828

2929
#### Infos
30-
version = "5.23"
30+
version = "5.24"
3131
author = "Wonderfall"
3232
name = "A.T.O.S."
3333

@@ -637,8 +637,11 @@ async def end_check_in():
637637
pass
638638

639639
for inscrit in list(participants):
640-
if participants[inscrit]["checked_in"] == False:
641-
await desinscrire(guild.get_member(inscrit))
640+
try:
641+
if participants[inscrit]["checked_in"] == False:
642+
await desinscrire(guild.get_member(inscrit))
643+
except KeyError:
644+
pass
642645

643646
await bot.get_channel(inscriptions_channel_id).send(":information_source: **Les absents du check-in ont été retirés** : "
644647
"des places sont peut-être libérées pour des inscriptions de dernière minute.\n")

0 commit comments

Comments
 (0)