From 6cb7f8cfe9063cd1800e5a37805d73c38444ce4e Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sat, 17 Dec 2022 00:58:49 +0100 Subject: [PATCH] Ensure to set peer variable before using it when catchin exception --- check_livestatus | 1 + 1 file changed, 1 insertion(+) diff --git a/check_livestatus b/check_livestatus index 4f523be..042721e 100755 --- a/check_livestatus +++ b/check_livestatus @@ -103,6 +103,7 @@ if not options.logfile or options.console: logconsole.setFormatter(logformat) log.addHandler(logconsole) +peer = "UNKNOWN" try: if options.unix_socket_path: peer = options.unix_socket_path