Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/interactions/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/interactions/utils.py')
-rw-r--r--archinstall/lib/interactions/utils.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/archinstall/lib/interactions/utils.py b/archinstall/lib/interactions/utils.py
index f6b5b2d3..fdbb4625 100644
--- a/archinstall/lib/interactions/utils.py
+++ b/archinstall/lib/interactions/utils.py
@@ -17,7 +17,12 @@ def get_password(prompt: str = '') -> Optional[str]:
if not prompt:
prompt = _("Enter a password: ")
- while password := getpass.getpass(prompt):
+ while True:
+ try:
+ password = getpass.getpass(prompt)
+ except (KeyboardInterrupt, EOFError):
+ break
+
if len(password.strip()) <= 0:
break