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@hvornum.se>2021-04-09 08:05:42 +0000
committerGitHub <noreply@github.com>2021-04-09 08:05:42 +0000
commite5c118239bb0fe473841fea1704dc754dd4b41cc (patch)
treecf1c415ba13d4e9dd2af7180492b8202642c549d /archinstall
parentf45429b099d1f22a925b8387e17ab11d675793d0 (diff)
parentacc2dac6527b5f7553a7066f80cc0680d328d31e (diff)
Merge pull request #250 from insanemal/insanemal-patch-2
OOB in generic_selection
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/user_interaction.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 33abbefb..1f5924e4 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -220,7 +220,7 @@ def generic_select(options, input_text="Select one of the above by index or abso
return None
elif selected_option.isdigit():
selected_option = int(selected_option)
- if selected_option >= len(options):
+ if selected_option > len(options):
raise RequirementError(f'Selected option "{selected_option}" is out of range')
selected_option = options[selected_option]
elif selected_option in options: