summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/tabs.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-27 22:58:24 +0200
committeremkael <emkael@tlen.pl>2019-06-27 22:58:24 +0200
commit512a48d2d4f556b30f502c4c057a975f43f58764 (patch)
tree61117dff1e6a89edf837aa2ce4976f61489614be /jfr_playoff/gui/tabs.py
parent6a3517f4f7e1c4fb57471c4ab8adcafeb18dc175 (diff)
Setting ties config only if teams config is a dictionary
Diffstat (limited to 'jfr_playoff/gui/tabs.py')
-rw-r--r--jfr_playoff/gui/tabs.py2
1 files changed, 1 insertions, 1 deletions
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