Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archinstall/lib/menu/menu.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall/lib/menu/menu.py b/archinstall/lib/menu/menu.py
index 12dbf1f5..f3fdb85f 100644
--- a/archinstall/lib/menu/menu.py
+++ b/archinstall/lib/menu/menu.py
@@ -337,7 +337,10 @@ class Menu(TerminalMenu):
if '|' in p:
p = p.replace('|', '\\|')
- idx = self._menu_options.index(p)
+ if p in self._menu_options:
+ idx = self._menu_options.index(p)
+ else:
+ idx = self._menu_options.index(self._default_menu_value)
indexes.append(idx)
except (IndexError, ValueError):
log(f'Error finding index of {p}: {self._menu_options}', level=logging.DEBUG)