Fix a bug when no RDAP server and verbose

This commit is contained in:
Stephane Bortzmeyer 2024-07-13 18:00:37 +02:00
parent 014fe9fec5
commit ff901cfc06

View File

@ -45,6 +45,9 @@ warning_t = datetime.timedelta(days=7)
unixtime = False unixtime = False
timeout = 20 # Seconds timeout = 20 # Seconds
# Cannot be changed on the command-line (yet)
server = None
def usage(msg=None): def usage(msg=None):
print("Usage: %s -H domain-name [-c critical -w warning -u -t timeout]" % sys.argv[0], end="") print("Usage: %s -H domain-name [-c critical -w warning -u -t timeout]" % sys.argv[0], end="")
if msg is not None and msg != "": if msg is not None and msg != "":