From dcd1eb8c42841b1027f08f563d8d20ad307ec640 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 31 Jul 2017 17:34:59 +0200 Subject: Team flag can be set to NULL --- playoff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'playoff.py') diff --git a/playoff.py b/playoff.py index 36cfb35..9537ef4 100644 --- a/playoff.py +++ b/playoff.py @@ -46,7 +46,8 @@ def get_shortname(fullname): def get_team_image(fullname): for team in settings['teams']: if team[0] == fullname and len(team) > 2: - return p_temp.LEADERBOARD_ROW_FLAG % (team[2]) + if team[2] is not None: + return p_temp.LEADERBOARD_ROW_FLAG % (team[2]) return '' def get_match_table(match): -- cgit v1.2.3