diff options
author | emkael <emkael@tlen.pl> | 2019-12-18 00:42:47 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-12-18 00:42:47 +0100 |
commit | d9445757f30d5d9a9271c53cfda3fae853a3910e (patch) | |
tree | 807d57a1090ded3e34044c1496f7d7d6a05189dd | |
parent | 1fb829508adecd1400053d618ef67b98b76dbe26 (diff) |
Default value for jfr_only option if not set in DealConverter constructor
-rw-r--r-- | dealconvert/formats/pbn.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dealconvert/formats/pbn.py b/dealconvert/formats/pbn.py index 6108f4b..306ab79 100644 --- a/dealconvert/formats/pbn.py +++ b/dealconvert/formats/pbn.py @@ -144,8 +144,8 @@ class PBNFormat(DealFormat): dd_board = PBNBoard(lines) dd_table = DDTable(dd_board).get_dd_table(self.interactive) dd_contract = ParScore(dd_board).get_par_contract(dd_table) - dd_board.save_dd_table(dd_table, jfr_only=self.options['jfr_only']) - dd_board.save_par_contract(dd_contract, jfr_only=self.options['jfr_only']) + dd_board.save_dd_table(dd_table, jfr_only=self.options.get('jfr_only', False)) + dd_board.save_par_contract(dd_contract, jfr_only=self.options.get('jfr_only', False)) lines = [field.raw_field for field in dd_board.fields] except Exception as e: warnings.warn('unable to determine double-dummy data: %s' % e) |