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:
Anton Hvornum 2021-04-14 11:10:09 +02:00 committed by GitHub
parent b08b2f3062
commit 5aad809274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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