Converted back to a raise exception.
Since we simply forgot to actually call `raise` here (my bad) I think that will be better, and we handle it where we need to.
This commit is contained in:
parent
b08b2f3062
commit
5aad809274
|
|
@ -399,6 +399,6 @@ def select_mirror_regions(mirrors, show_top_mirrors=True):
|
|||
elif selected_mirror in mirrors:
|
||||
selected_mirrors[selected_mirror] = mirrors[selected_mirror]
|
||||
else:
|
||||
print("Selected region does not exist.")
|
||||
raise RequirementError("Selected region does not exist.")
|
||||
|
||||
return selected_mirrors
|
||||
return selected_mirrors
|
||||
|
|
|
|||
Loading…
Reference in New Issue