It's new_relay not just relay

This commit is contained in:
HackerNCoder 2021-12-26 22:30:50 +00:00
parent 334680d8b8
commit 77646b843b
No known key found for this signature in database
GPG key ID: 569FFF33FF802E16

View file

@ -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)