summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/ping.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/ping.py b/src/op_mode/ping.py
index f3b3ee914..e56952c38 100755
--- a/src/op_mode/ping.py
+++ b/src/op_mode/ping.py
@@ -210,7 +210,7 @@ if __name__ == '__main__':
try:
ip = socket.gethostbyname(host)
except socket.gaierror:
- sys.exit(f'ping: Unknown host: {host}')
+ ip = host
try:
version = ipaddress.ip_address(ip).version