Fix TabError issue after uncommenting
This commit is contained in:
parent
06e846796d
commit
3facc2e58d
|
|
@ -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()):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue