It's new_relay not just relay
This commit is contained in:
parent
334680d8b8
commit
77646b843b
|
@ -20,7 +20,7 @@ for new_relay in relays:
|
||||||
exit = "no"
|
exit = "no"
|
||||||
eol = "no"
|
eol = "no"
|
||||||
contact = ""
|
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)
|
test = re.search("([a-zA-Z0-9_.+-]+(\[\]|\@|at)[a-zA-Z0-9-.]+\.[a-zA-Z0-9-.]+)", relay["contact"], re.IGNORECASE)
|
||||||
if test:
|
if test:
|
||||||
contact = ", contact: " + test.group(1)
|
contact = ", contact: " + test.group(1)
|
||||||
|
|
Loading…
Reference in a new issue