Ok, now what?!

This commit is contained in:
Adrian Woodley
2019-07-23 02:19:30 +08:00
parent baf08f0001
commit 05c64a3e32

View File

@@ -123,6 +123,7 @@ class Worker(threading.Thread):
for command in commands:
if not send_config(telnet, command):
print(command.get_command())
self.__failed.put(inue)
fail = True
break
@@ -140,7 +141,7 @@ class Worker(threading.Thread):
with telnetlib.Telnet(new_ip, PORT) as telnet:
self.__passed.put(new_ip)
except OSError:
FAILED_QUEUE.put(inue)
self.__failed.put(inue)
continue