Fixed a bug where if you selected a region by name, not number. It would bork out.

This commit is contained in:
Anton Hvornum 2020-09-30 09:25:04 +00:00
parent fad2c36cd2
commit 3cf45bdc03
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ def select_mirror_regions(mirrors, show_top_mirrors=True):
# for instance Sweden (if we know that exists) without having to
# go through the search step.
elif selected_mirror in mirrors:
selected_mirrors[selected_mirror] = mirrors[mirrors.index(selected_mirror)]
selected_mirrors[selected_mirror] = mirrors[selected_mirror]
else:
RequirementError("Selected region does not exist.")