Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 2f22bf6a..84045b83 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -204,7 +204,8 @@ if nic:
fg='red'
)
- if gateway = input('Enter your gateway (router) IP address or leave blank for none: ').strip()
+ if not len(gateway := input('Enter your gateway (router) IP address or leave blank for none: ').strip()):
+ gateway = None
dns = None
if len(dns := input('Enter your DNS servers (space separated, blank for none): ').strip()):