From ceab8e626445e03f95ea2fc14a46ad52f6e6fab6 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Fri, 19 Feb 2021 19:04:40 -0500 Subject: [PATCH] fixed a bug with finals end card for non-league tournaments --- the_prestige.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/the_prestige.py b/the_prestige.py index 5499332..201aa8e 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -1701,7 +1701,7 @@ async def tourney_round_watcher(channel, tourney, games_list, filter_url, finals if finals: #if this last round was finals embed = discord.Embed(color = discord.Color.dark_purple(), title = f"{winner_list[0]} win the {tourney.name} finals!") - if tourney.day > tourney.league.day: + if tourney.league is not None and tourney.day > tourney.league.day: tourney.league.day = tourney.day await channel.send(embed=embed) tourney.winner = get_team_fuzzy_search(winner_list[0])