Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/user_interaction.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2021-04-14 11:10:09 +0200
committerGitHub <noreply@github.com>2021-04-14 11:10:09 +0200
commit5aad8092742d4342e76cc32d9d4049b6b8f0c1a4 (patch)
tree7e01e394c33e05d9089b16e908458bc76489bcc5 /archinstall/lib/user_interaction.py
parentb08b2f3062eae00e8ac4eab613d4edec07b324ad (diff)
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.
Diffstat (limited to 'archinstall/lib/user_interaction.py')
-rw-r--r--archinstall/lib/user_interaction.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index aa7163cc..1f3ddd09 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -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 \ No newline at end of file
+ return selected_mirrors