Fix TabError issue after uncommenting

This commit is contained in:
SecondThundeR 2021-04-20 15:25:46 +03:00
parent 06e846796d
commit 3facc2e58d
1 changed files with 9 additions and 9 deletions

View File

@ -195,15 +195,15 @@ def ask_to_configure_network():
try: try:
if len(gateway) == 0: if len(gateway) == 0:
gateway = None gateway = None
else: else:
ipaddress.ip_address(gateway) ipaddress.ip_address(gateway)
break break
except ValueError: except ValueError:
log( log(
"You need to enter a valid gateway (router) IP address.", "You need to enter a valid gateway (router) IP address.",
level=LOG_LEVELS.Warning, level=LOG_LEVELS.Warning,
fg='red' fg='red'
) )
dns = None dns = None
if len(dns_input := input('Enter your DNS servers (space separated, blank for none): ').strip()): if len(dns_input := input('Enter your DNS servers (space separated, blank for none): ').strip()):