diff options
author | emkael <emkael@tlen.pl> | 2016-11-10 18:12:57 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-11-10 18:12:57 +0100 |
commit | 7dd615cb5254c309c30e97f68c63f56bcb36f91d (patch) | |
tree | d885053a9d0835a28218e23b8781ebe877df819d /src | |
parent | 7f1613f6c0146d6d5cba4cb28c2946e1b08edec4 (diff) |
* sanity chackes for non-complete BWS files
Diffstat (limited to 'src')
-rw-r--r-- | src/bidding_data.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/bidding_data.py b/src/bidding_data.py index d63a2b8..e9d4588 100644 --- a/src/bidding_data.py +++ b/src/bidding_data.py @@ -488,13 +488,14 @@ class JFRBidding(object): self.__tournament_files_match, tournament_file).group(1) board_text_path = path.splitext(tournament_file)[0] + '.txt' - log.getLogger('links').info('writing traveller for board %s: %s', - file_number, board_text_path) - used_bidding_tables = self.__write_bidding_file( - board_text_path, file_number) + used_bidding_tables - used_board_files.append(board_text_path) - log.getLogger('links').info('used board files: %s', - ', '.join(used_bidding_tables)) + if path.exists(board_text_path): + log.getLogger('links').info('writing traveller for board %s: %s', + file_number, board_text_path) + used_bidding_tables = self.__write_bidding_file( + board_text_path, file_number) + used_bidding_tables + used_board_files.append(board_text_path) + log.getLogger('links').info('used board files: %s', + ', '.join(used_bidding_tables)) for unused_file in [unused for unused in self.__bidding_files if unused not in used_bidding_tables]: |