more stable Telnet

This commit is contained in:
Matthew Frost 2023-11-24 13:01:07 +01:00
parent 34bcb35e6b
commit cee86b3af2

View file

@ -20,8 +20,8 @@ def get_telnet_connection(powerbar):
Returns: Returns:
telnetlib.Telnet: The telnet connection object. telnetlib.Telnet: The telnet connection object.
""" """
if powerbar in active_telnet_connections: if powerbar in active_telnet_connections:
return active_telnet_connections[powerbar] return active_telnet_connections[powerbar]
else: else: