Fix SEL None

This commit is contained in:
Marks Polakovs 2020-04-23 10:31:02 +02:00
parent d6e821692f
commit 5a05406df2

View file

@ -303,10 +303,11 @@ def post_registerCheck() -> Any:
} }
if start_time + datetime.timedelta(minutes=2) < now_time: if start_time + datetime.timedelta(minutes=2) < now_time:
# they're late, bring them live now if connection["wsid"] is not None:
print("({}, {}) late, bringing on air now".format(connection["connid"], connection["wsid"])) # they're late, bring them live now
do_ws_srv_telnet(connection["wsid"]) print("({}, {}) late, bringing on air now".format(connection["connid"], connection["wsid"]))
subprocess.Popen(['sel', '5']) do_ws_srv_telnet(connection["wsid"])
subprocess.Popen(['sel', '5'])
assert connection is not None assert connection is not None
if new_connection: if new_connection: