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

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonderfall committed Jul 4, 2020
1 parent e991b83 commit cac2c56
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
log = logging.getLogger("atos")

#### Infos
version = "5.23"
version = "5.24"
author = "Wonderfall"
name = "A.T.O.S."

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit cac2c56

Please sign in to comment.