Skip to content
Snippets Groups Projects
Commit 26732a2f authored by Marc-Philipp Knechtle's avatar Marc-Philipp Knechtle
Browse files

add none check to matching_table_with_highest_intersection

parent 18a19cbd
Branches
No related tags found
No related merge requests found
......@@ -33,7 +33,8 @@ def match_tables(tables_to_find_candidates: List[Table], matching_tables: List[T
highest_intersection = intersection.area
matching_table_with_highest_intersection = table_to_match
matching_tables.remove(matching_table_with_highest_intersection)
if matching_table_with_highest_intersection is not None:
matching_tables.remove(matching_table_with_highest_intersection)
matched_tables[table] = matching_table_with_highest_intersection
return matched_tables
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment