diff options
author | emkael <emkael@tlen.pl> | 2015-08-28 00:44:05 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-08-28 00:44:05 +0200 |
commit | 166646c5746134e63e3317e420ef0866b97660d4 (patch) | |
tree | 0b1e289b76b14f10d8b622f73a6fcafd920fbe52 /bidding_data.py | |
parent | 19b6737916ecec8992559248fb0b5d4d75c37b74 (diff) |
* value error check for pair numbers
Diffstat (limited to 'bidding_data.py')
-rw-r--r-- | bidding_data.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bidding_data.py b/bidding_data.py index 9bcd246..7dd1a58 100644 --- a/bidding_data.py +++ b/bidding_data.py @@ -287,12 +287,15 @@ class JFRBidding: # traveller table rows for specific score entries # should have 11 cells if len(cells) == 11: - pair_numbers = sorted( - [ - int(cells[1].contents[0]), - int(cells[2].contents[0]) - ] - ) + try: + pair_numbers = sorted( + [ + int(cells[1].contents[0]), + int(cells[2].contents[0]) + ] + ) + except ValueError: + continue bidding_link = board_text_content.new_tag( 'a', href='#', |