From 512a48d2d4f556b30f502c4c057a975f43f58764 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 27 Jun 2019 22:58:24 +0200 Subject: Setting ties config only if teams config is a dictionary --- jfr_playoff/gui/tabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jfr_playoff/gui') diff --git a/jfr_playoff/gui/tabs.py b/jfr_playoff/gui/tabs.py index 0e29b7a..e61779c 100644 --- a/jfr_playoff/gui/tabs.py +++ b/jfr_playoff/gui/tabs.py @@ -196,7 +196,7 @@ class TeamsTab(PlayoffTab): 'team_aliases': self.aliasFrame.getConfig() } tieConfig = self.previewFrame.getTieConfig() - if tieConfig is not None: + if tieConfig is not None and isinstance(config['teams'], dict): config['teams']['ties'] = tieConfig return config -- cgit v1.2.3