From eb6a945a122446d605f147289592ce21f9f7e92f Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 9 Jun 2019 15:47:46 +0200 Subject: Bugfix for team list preview when short arrays are fetched from URL --- jfr_playoff/gui/frames/team.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jfr_playoff') diff --git a/jfr_playoff/gui/frames/team.py b/jfr_playoff/gui/frames/team.py index 510d021..6ae5ad3 100644 --- a/jfr_playoff/gui/frames/team.py +++ b/jfr_playoff/gui/frames/team.py @@ -389,7 +389,7 @@ class TeamPreviewFrame(ScrollableFrame): label.destroy() self.teamList.delete(*self.teamList.get_children()) for idx, team in enumerate(teams): - if team[2] is None: + if len(team) > 2 and team[2] is None: team[2] = '' self.teamList.insert('', tk.END, values=team, tag=idx) if idx >= len(self.tieFields): -- cgit v1.2.3