Skip to content

Commit

Permalink
fix: timeout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Apr 10, 2024
1 parent f5a4c06 commit da6f085
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bot/clan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ async def raid_weekend_track(clan_tags: List[str], db_client: MongoDatabase, coc


async def clan_track(clan_tag: str, coc_client: coc.Client, producer: KafkaProducer):
clan = await coc_client.get_clan(tag=clan_tag)
try:
clan = await coc_client.get_clan(tag=clan_tag)
except Exception:
return

previous_clan: coc.Clan = CLAN_CACHE.get(clan.tag)
CLAN_CACHE[clan.tag] = clan

Expand Down

0 comments on commit da6f085

Please sign in to comment.