Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/locale/locale_menu.py
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-10-17 05:21:39 -0400
committerGitHub <noreply@github.com>2023-10-17 11:21:39 +0200
commit332ec0d6236ca863cb6a2101849555935066549f (patch)
tree2c57d4780d08ea28fc62ee3e5bc0a5459eaa575a /archinstall/lib/locale/locale_menu.py
parent5dda32f17ef0190955fe12251764c0088af20ccd (diff)
Fix reset in locales menu (#2178)
Diffstat (limited to 'archinstall/lib/locale/locale_menu.py')
-rw-r--r--archinstall/lib/locale/locale_menu.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archinstall/lib/locale/locale_menu.py b/archinstall/lib/locale/locale_menu.py
index 75cc1332..db119f20 100644
--- a/archinstall/lib/locale/locale_menu.py
+++ b/archinstall/lib/locale/locale_menu.py
@@ -80,6 +80,9 @@ class LocaleMenu(AbstractSubMenu):
def run(self, allow_reset: bool = True) -> LocaleConfiguration:
super().run(allow_reset=allow_reset)
+ if not self._data_store:
+ return LocaleConfiguration.default()
+
return LocaleConfiguration(
self._data_store['keyboard-layout'],
self._data_store['sys-language'],