Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2021-04-22 21:36:31 +0200
committerGitHub <noreply@github.com>2021-04-22 21:36:31 +0200
commit74951b841c9906511731408bc5d3a70a7d6ae65f (patch)
tree7fdf695e90ae4e00773a453cb673e82871bed766
parentbd9d2c9125aa7e08d38093dcf21fcef3d101f4d6 (diff)
Restructured endless loop definition
I prefer to easily spot an endless loop by not having external variables attached to the loop condition. Since we never updated `exists` it's a dummy variable that I expect to be updated some where in order to break it. When that's not the case, it's more clear that it's an endless loop if there's no conditions attached to the loop definition.
-rw-r--r--archinstall/lib/user_interaction.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index a481dac3..dcb51e2a 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -130,8 +130,7 @@ def ask_for_additional_users(prompt='Any additional users to install (leave blan
return users, super_users
def ask_for_a_timezone():
- exists = False
- while not exists:
+ while True:
timezone = input('Enter a valid timezone (examples: Europe/Stockholm, US/Eastern) or press enter to use UTC: ').strip()
if timezone == '':
timezone = 'UTC'