index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | SecondThundeR <awayfromgalaxy@gmail.com> | 2021-04-20 15:25:46 +0300 |
---|---|---|
committer | SecondThundeR <awayfromgalaxy@gmail.com> | 2021-04-20 15:25:46 +0300 |
commit | 3facc2e58d6b430e47d0eba42dc6d11879c36017 (patch) | |
tree | 8b4b9d6b246db50aa6828fdaa88c2bc7f688f005 /archinstall/lib | |
parent | 06e846796d7fd18a0832b14291ef3fcf429dd214 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction.py | 18 |
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py index 86d6e514..546ee3ee 100644 --- a/archinstall/lib/user_interaction.py +++ b/archinstall/lib/user_interaction.py @@ -195,15 +195,15 @@ def ask_to_configure_network(): try: if len(gateway) == 0: gateway = None - else: - ipaddress.ip_address(gateway) - break - except ValueError: - log( - "You need to enter a valid gateway (router) IP address.", - level=LOG_LEVELS.Warning, - fg='red' - ) + else: + ipaddress.ip_address(gateway) + break + except ValueError: + log( + "You need to enter a valid gateway (router) IP address.", + level=LOG_LEVELS.Warning, + fg='red' + ) dns = None if len(dns_input := input('Enter your DNS servers (space separated, blank for none): ').strip()): |