From 409f7a67427c6711177d2df97a8ae262594b6e91 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 28 Sep 2018 00:39:56 +0200 Subject: Bugfix for absent config option --- jfr_playoff/generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'jfr_playoff') diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py index 12a4365..782ce1d 100644 --- a/jfr_playoff/generator.py +++ b/jfr_playoff/generator.py @@ -190,7 +190,8 @@ class PlayoffGenerator(object): finishing_places = set() for phase in grid: grid_x = col_no * self.page['width'] + (col_no + 1) * self.page['margin'] \ - if self.page['starting_position_indicators'] \ + if ('starting_position_indicators' in self.page + and self.page['starting_position_indicators']) \ else col_no * (self.page['width'] + self.page['margin']) grid_boxes += self.get_phase_header(phase, grid_x) match_height = canvas_size[1] / len(phase.matches) -- cgit v1.2.3