summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-08-02 03:29:12 -0500
committerDaniil Baturin <daniil@vyos.io>2021-08-02 03:29:12 -0500
commitf0148b9306846a34c86f1726fd7ffb37143c94c7 (patch)
treef59896e306ddc21130e6d2682795f623abed7fb1 /src
parent50a1392564611951142b8a2ca7d2af0dc4cb5cc7 (diff)
parentf83a5125735bb2f63e4d98e1b264eb689a2ef00f (diff)
downloadvyos-1x-f0148b9306846a34c86f1726fd7ffb37143c94c7.tar.gz
vyos-1x-f0148b9306846a34c86f1726fd7ffb37143c94c7.zip
Merge branch 'equuleus' of https://github.com/vyos/vyos-1x into equuleus
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/ping.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/op_mode/ping.py b/src/op_mode/ping.py
index 924a889db..610f6a05d 100755
--- a/src/op_mode/ping.py
+++ b/src/op_mode/ping.py
@@ -220,6 +220,8 @@ if __name__ == '__main__':
try:
ip = socket.gethostbyname(host)
+ except UnicodeError:
+ sys.exit(f'ping: Unknown host: {host}')
except socket.gaierror:
ip = host