diff --git a/app/views.py b/app/views.py index 336cb98..2052426 100644 --- a/app/views.py +++ b/app/views.py @@ -20,8 +20,8 @@ def get_telnet_connection(powerbar): Returns: telnetlib.Telnet: The telnet connection object. - """ + if powerbar in active_telnet_connections: return active_telnet_connections[powerbar] else: