Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/interactions/manage_users_conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/interactions/manage_users_conf.py')
-rw-r--r--archinstall/lib/interactions/manage_users_conf.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/archinstall/lib/interactions/manage_users_conf.py b/archinstall/lib/interactions/manage_users_conf.py
index 879578da..ca912283 100644
--- a/archinstall/lib/interactions/manage_users_conf.py
+++ b/archinstall/lib/interactions/manage_users_conf.py
@@ -75,7 +75,11 @@ class UserList(ListManager):
prompt = '\n\n' + str(_('Enter username (leave blank to skip): '))
while True:
- username = input(prompt).strip(' ')
+ try:
+ username = input(prompt).strip(' ')
+ except (KeyboardInterrupt, EOFError):
+ return None
+
if not username:
return None
if not self._check_for_correct_username(username):