Skip to content

Commit d18ea65

Browse files
don't write anything if there are no mappings
1 parent 3e68a11 commit d18ea65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

choose_l10n_ci_set.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def add_selected_mappings(mappings):
4242
Args:
4343
mappings (dict): A dictionary of mappings, where the keys are sites and the values are sets of regions.
4444
"""
45+
if not mappings:
46+
return
4547
# sort the mappings by the length of the regions per site
4648
mappings = dict(sorted(mappings.items(), key=lambda val: len(val[1]), reverse=True))
4749
# place the mappings into 3 containers evenly according to the load

0 commit comments

Comments
 (0)