Fixed a bug where if you selected a region by name, not number. It would bork out.
This commit is contained in:
parent
fad2c36cd2
commit
3cf45bdc03
|
|
@ -125,7 +125,7 @@ def select_mirror_regions(mirrors, show_top_mirrors=True):
|
||||||
# for instance Sweden (if we know that exists) without having to
|
# for instance Sweden (if we know that exists) without having to
|
||||||
# go through the search step.
|
# go through the search step.
|
||||||
elif selected_mirror in mirrors:
|
elif selected_mirror in mirrors:
|
||||||
selected_mirrors[selected_mirror] = mirrors[mirrors.index(selected_mirror)]
|
selected_mirrors[selected_mirror] = mirrors[selected_mirror]
|
||||||
else:
|
else:
|
||||||
RequirementError("Selected region does not exist.")
|
RequirementError("Selected region does not exist.")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue