diff options
author | Daniil Baturin <daniil@vyos.io> | 2021-08-02 03:29:12 -0500 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2021-08-02 03:29:12 -0500 |
commit | f0148b9306846a34c86f1726fd7ffb37143c94c7 (patch) | |
tree | f59896e306ddc21130e6d2682795f623abed7fb1 /src/op_mode/ping.py | |
parent | 50a1392564611951142b8a2ca7d2af0dc4cb5cc7 (diff) | |
parent | f83a5125735bb2f63e4d98e1b264eb689a2ef00f (diff) | |
download | vyos-1x-f0148b9306846a34c86f1726fd7ffb37143c94c7.tar.gz vyos-1x-f0148b9306846a34c86f1726fd7ffb37143c94c7.zip |
Merge branch 'equuleus' of https://github.com/vyos/vyos-1x into equuleus
Diffstat (limited to 'src/op_mode/ping.py')
-rwxr-xr-x | src/op_mode/ping.py | 2 |
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 |