index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daemon Coder <11915375+codefiles@users.noreply.github.com> | 2023-05-07 02:48:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 08:48:46 +0200 |
commit | a968dccbf1b9c83c8abc40e709c5b1c3142a5f2c (patch) | |
tree | 8c643acf37e75b16bd9bab81aa08ab919f898d07 /archinstall/lib/menu | |
parent | 232939e910433ceb2c426a3de224587473c03182 (diff) |
-rw-r--r-- | archinstall/lib/menu/menu.py | 5 |
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) |