From d02f288c8ae7835f1a8fafa60e860a106200bb0d Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 10 Sep 2023 20:30:55 +0300 Subject: [PATCH] try fix --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 9015800..8e6c0de 100644 --- a/main.py +++ b/main.py @@ -159,9 +159,9 @@ def start(args): for group in data: hosts, description = group for host in hosts: - if not host[0].isdigit(): + try: ipnet = socket.gethostbyname(host) - else: + except: ipnet = host ipnetwork = IPNetwork(ipnet)