Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-11 20:20:46 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-11 20:20:46 +0000
commitb3bcf54a2cb915b8dd9f59d6a85a5ea45f61fd96 (patch)
tree29976dab28106baa067552fc523aa78f42c58eb0 /archinstall
parentabfeeb8dd0cadadbe38310e96a61e31088652d82 (diff)
Fixed generic_select() to accept (and break on) empty selects.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/user_interaction.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 29dfaed2..fdbabe96 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -24,7 +24,9 @@ def generic_select(options, input_text="Select one of the above by index or abso
print(f"{index}: {option}")
selected_option = input(input_text)
- if selected_option.isdigit():
+ if len(selected_option.strip()) <= 0:
+ return None
+ elif selected_option.isdigit():
selected_option = options[int(selected_option)]
elif selected_option in options:
pass # We gave a correct absolute value