diff --git a/app/utils.py b/app/utils.py index ea9603a..3a6188e 100644 --- a/app/utils.py +++ b/app/utils.py @@ -24,8 +24,8 @@ def run_telnet_command(powerbar, command): for _ in range(retries): try: - check_input_error(tn) tn = get_telnet_connection(powerbar) + check_input_error(tn) tn.write(f"{command}\r\n".encode('ascii')) tn.close() return True