From 77646b843b918ed755237f552365be26d5acc46f Mon Sep 17 00:00:00 2001 From: HackerNCoder Date: Sun, 26 Dec 2021 22:30:50 +0000 Subject: [PATCH] It's new_relay not just relay --- relaystatus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relaystatus.py b/relaystatus.py index 23f6532..45df986 100644 --- a/relaystatus.py +++ b/relaystatus.py @@ -20,7 +20,7 @@ for new_relay in relays: exit = "no" eol = "no" contact = "" - if "contact" in relay: + if "contact" in new_relay: test = re.search("([a-zA-Z0-9_.+-]+(\[\]|\@|at)[a-zA-Z0-9-.]+\.[a-zA-Z0-9-.]+)", relay["contact"], re.IGNORECASE) if test: contact = ", contact: " + test.group(1)