Fixed changes caused by newer mycroft version

Signed-off-by: merspieler <merspieler@users.noreply.github.com>
This commit is contained in:
merspieler 2018-07-13 21:07:52 +02:00
parent ed41c41bc3
commit 5c14e3e6e8

View file

@ -506,7 +506,7 @@ class FlightGearCopilotSkill(MycroftSkill):
net = re.sub("\d[1-3]$", '', net) net = re.sub("\d[1-3]$", '', net)
# scan network # scan network
for host_part in range(1, 255): for host_part in range(1, 254):
ip = net + str(host_part) ip = net + str(host_part)
try: try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)