From ff901cfc061cc0bbfbdff8668b6aac11ee67824a Mon Sep 17 00:00:00 2001 From: Stephane Bortzmeyer Date: Sat, 13 Jul 2024 18:00:37 +0200 Subject: [PATCH] Fix a bug when no RDAP server and verbose --- check_expire | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_expire b/check_expire index 2fca3ad..3cc6181 100755 --- a/check_expire +++ b/check_expire @@ -45,6 +45,9 @@ warning_t = datetime.timedelta(days=7) unixtime = False timeout = 20 # Seconds +# Cannot be changed on the command-line (yet) +server = None + def usage(msg=None): print("Usage: %s -H domain-name [-c critical -w warning -u -t timeout]" % sys.argv[0], end="") if msg is not None and msg != "":